FIX: Remove null value from categories list

This commit is contained in:
Vinoth Kannan 2018-07-27 20:00:39 +05:30
parent 85291e53f1
commit bc501038cb
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ export default createWidget("hamburger-menu", {
categories = categoryIds.map(id => {
return categoriesList.find(c => c.id === id);
});
}).filter(c => c);
} else {
showMore = categoriesList.length > maxCategoriesToDisplay;
categories = categoriesList.slice(0, maxCategoriesToDisplay);