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() {
|
listCategories() {
|
||||||
const maxCategoriesToDisplay = 6;
|
const maxCategoriesToDisplay = 6;
|
||||||
const categoriesList = this.site
|
const categoriesList = this.site
|
||||||
.get("categoriesByCount")
|
.get("categoriesByCount");
|
||||||
.reject(c => c.parent_category_id);
|
|
||||||
let categories = [];
|
let categories = [];
|
||||||
let showMore = categoriesList.length > maxCategoriesToDisplay;
|
let showMore = categoriesList.length > maxCategoriesToDisplay;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue