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

View file

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