mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 17:15:32 +08:00
FIX: make sure we have a category
This commit is contained in:
parent
e43343354a
commit
6a25a62e63
|
@ -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"));
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user