mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-25 01:09:36 +02:00
closes #2124
This commit is contained in:
@@ -140,6 +140,9 @@ function filterAndRenderCategories(req, res, next, active) {
|
||||
}
|
||||
|
||||
categoryData = categoryData.filter(function (category) {
|
||||
if (!category) {
|
||||
return false;
|
||||
}
|
||||
return active ? !category.disabled : category.disabled;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user