Skip to content

Commit 0d57e4b

Browse files
committed
FIX: render uncategorized badge in category chooser
1 parent 5d49956 commit 0d57e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/discourse/views/category_chooser_view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Discourse.CategoryChooserView = Discourse.ComboboxView.extend({
4040
var category = Discourse.Category.findById(parseInt(templateData.id,10));
4141
if (!category) return text;
4242

43-
var result = Discourse.HTML.categoryBadge(category, {showParent: true, link: false});
43+
var result = Discourse.HTML.categoryBadge(category, {showParent: true, link: false, allowUncategorized: true});
4444

4545
result += " <div class='topic-count'>&times; " + category.get('topic_count') + "</div>";
4646

0 commit comments

Comments
 (0)