diff --git a/src/categories/index.js b/src/categories/index.js index fa62b32501..3e0e0e4049 100644 --- a/src/categories/index.js +++ b/src/categories/index.js @@ -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),