FIX: hamburger shouldn't show subcategories if show_subcategory_list is enabled on the parent

This commit is contained in:
Neil Lalonde 2017-02-27 15:34:07 -05:00
parent 5a48cea395
commit cfedbad0e9
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ export default createWidget('hamburger-menu', {
const isStaff = Discourse.User.currentProp('staff');
const categories = Discourse.Category.list().reject((c) => {
if (c.get('show_subcategory_list') && c.get('parent_category_id')) { return true; }
if (c.get('parentCategory.show_subcategory_list')) { return true; }
if (hideUncategorized && c.get('isUncategorizedCategory') && !isStaff) { return true; }
return false;
});