From 39f4bbaa0eda69d54c104463eda303abadef3cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 24 Aug 2020 10:12:08 -0400 Subject: [PATCH] fix: wrong data passed to getCategories --- src/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.js b/src/search.js index bc75e87a66..e67f185d2f 100644 --- a/src/search.js +++ b/src/search.js @@ -154,7 +154,7 @@ async function getTopics(tids, data) { const topicsData = await topics.getTopicsData(tids); const cids = _.uniq(topicsData.map(topic => topic && topic.cid)); const [categories, tags] = await Promise.all([ - getCategories(topicsData, data), + getCategories(cids, data), getTags(tids, data), ]);