mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
FIX: make sure we have a category
This commit is contained in:
parent
e43343354a
commit
6a25a62e63
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue