mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 06:10:10 +08:00
FIX: make sure we have a category
This commit is contained in:
@ -165,7 +165,7 @@ TopicList.reopenClass({
|
|||||||
|
|
||||||
// hide the category when it has no children
|
// hide the category when it has no children
|
||||||
hideUniformCategory(list, category) {
|
hideUniformCategory(list, category) {
|
||||||
list.set('hideCategory', !category.get("has_children"));
|
list.set('hideCategory', category && !category.get("has_children"));
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user