FIX: make sure we have a category

This commit is contained in:
Régis Hanol 2015-09-03 11:56:33 +02:00
parent e43343354a
commit 6a25a62e63
1 changed files with 1 additions and 1 deletions

View File

@ -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"));
} }
}); });