FIX: Remove null value from categories list
This commit is contained in:
parent
85291e53f1
commit
bc501038cb
|
@ -190,7 +190,7 @@ export default createWidget("hamburger-menu", {
|
||||||
|
|
||||||
categories = categoryIds.map(id => {
|
categories = categoryIds.map(id => {
|
||||||
return categoriesList.find(c => c.id === id);
|
return categoriesList.find(c => c.id === id);
|
||||||
});
|
}).filter(c => c);
|
||||||
} else {
|
} else {
|
||||||
showMore = categoriesList.length > maxCategoriesToDisplay;
|
showMore = categoriesList.length > maxCategoriesToDisplay;
|
||||||
categories = categoriesList.slice(0, maxCategoriesToDisplay);
|
categories = categoriesList.slice(0, maxCategoriesToDisplay);
|
||||||
|
|
Loading…
Reference in New Issue