mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
Categories optimize (#6999)
* WIP * fix category page * fix counts, and copyPrivileges * fix lint * more fixes, * redis fix * fix test * fix category test * remove getParentsAndChildren
This commit is contained in:
committed by
GitHub
parent
96a2be9b55
commit
53ad2bbd6e
@@ -288,7 +288,7 @@ function getCategoryData(cids, uid, selectedCid, callback) {
|
||||
}
|
||||
|
||||
var categoriesData = [];
|
||||
var tree = categories.getTree(categoryData, 0);
|
||||
var tree = categories.getTree(categoryData);
|
||||
|
||||
tree.forEach(function (category) {
|
||||
recursive(category, categoriesData, '');
|
||||
|
||||
Reference in New Issue
Block a user