FIX: hamburger shouldn't show subcategories if show_subcategory_list is enabled on the parent
This commit is contained in:
parent
5a48cea395
commit
cfedbad0e9
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue