mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: skip topic retrieval when cid is -1, as it is done again later
This commit is contained in:
@@ -46,7 +46,7 @@ Categories.getCategoryById = async function (data) {
|
||||
data.category = category;
|
||||
|
||||
const promises = [
|
||||
Categories.getCategoryTopics(data),
|
||||
data.cid !== '-1' ? Categories.getCategoryTopics(data) : [],
|
||||
Categories.getTopicCount(data),
|
||||
Categories.getWatchState([data.cid], data.uid),
|
||||
getChildrenTree(category, data.uid),
|
||||
|
||||
Reference in New Issue
Block a user