mirror of
https://github.com/discourse/discourse.git
synced 2025-04-23 22:24:23 +08:00
Make prettier happy
This commit is contained in:
parent
bc501038cb
commit
a9c959e3e2
@ -190,7 +190,8 @@ export default createWidget("hamburger-menu", {
|
||||
|
||||
categories = categoryIds.map(id => {
|
||||
return categoriesList.find(c => c.id === id);
|
||||
}).filter(c => c);
|
||||
});
|
||||
categories = categories.filter(c => c);
|
||||
} else {
|
||||
showMore = categoriesList.length > maxCategoriesToDisplay;
|
||||
categories = categoriesList.slice(0, maxCategoriesToDisplay);
|
||||
|
Loading…
x
Reference in New Issue
Block a user