From 92191995916d8072fbc53b35aa5d88cd5c3530fa Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 11 Jul 2024 15:27:26 -0400 Subject: [PATCH] fix: skip topic retrieval when cid is -1, as it is done again later --- src/categories/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),