mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
bulk fix
This commit is contained in:
@@ -76,7 +76,7 @@ Controllers.home = function(req, res, next) {
|
||||
childCategories.push.apply(childCategories, categoryData[i].children);
|
||||
}
|
||||
|
||||
if (categoryData[i].parent) {
|
||||
if (categoryData[i].parent && categoryData[i].parent.cid) {
|
||||
categoryData.splice(i, 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user