From c0f7d95bb83394f4ab04e445dd96a6f8ffc209d9 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Fri, 27 Jul 2018 13:05:18 +0530 Subject: [PATCH] Include subcategories in hamburger menu top categories --- app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 index ca141b5fd4f..28ed2472428 100644 --- a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 @@ -178,8 +178,7 @@ export default createWidget("hamburger-menu", { listCategories() { const maxCategoriesToDisplay = 6; const categoriesList = this.site - .get("categoriesByCount") - .reject(c => c.parent_category_id); + .get("categoriesByCount"); let categories = []; let showMore = categoriesList.length > maxCategoriesToDisplay;