mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-19 19:49:45 +02:00
Delete errors
This commit is contained in:
@@ -158,15 +158,15 @@ adminController.categories.getAll = function(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
plugins.fireHook('filter:admin.categories.get', {req: req, res: res, categories: categoryData}, function(err, data) {
|
||||
plugins.fireHook('filter:admin.categories.get', {req: req, res: res, categories: categoryData}, function(err, data) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
|
||||
data.categories.filter(Boolean).forEach(function(category) {
|
||||
(category.disabled ? disabled : active).push(category);
|
||||
});
|
||||
|
||||
|
||||
res.render('admin/manage/categories', {
|
||||
active: active,
|
||||
disabled: disabled
|
||||
|
||||
Reference in New Issue
Block a user