fix: skip topic retrieval when cid is -1, as it is done again later

This commit is contained in:
Julian Lam
2024-07-11 15:27:26 -04:00
parent 31c7226e34
commit 9219199591

View File

@@ -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),