diff --git a/src/controllers/admin.js b/src/controllers/admin.js index ab28005db7..8ba54380d8 100644 --- a/src/controllers/admin.js +++ b/src/controllers/admin.js @@ -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; });