mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:17:36 +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
|
||||
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