mirror of
https://github.com/discourse/discourse.git
synced 2025-04-22 17:39:08 +08:00
Include subcategories in hamburger menu top categories
This commit is contained in:
parent
dac29b5ebc
commit
c0f7d95bb8
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user