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