mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-26 17:29:53 +01:00
fix: wrong data passed to getCategories
This commit is contained in:
@@ -154,7 +154,7 @@ async function getTopics(tids, data) {
|
|||||||
const topicsData = await topics.getTopicsData(tids);
|
const topicsData = await topics.getTopicsData(tids);
|
||||||
const cids = _.uniq(topicsData.map(topic => topic && topic.cid));
|
const cids = _.uniq(topicsData.map(topic => topic && topic.cid));
|
||||||
const [categories, tags] = await Promise.all([
|
const [categories, tags] = await Promise.all([
|
||||||
getCategories(topicsData, data),
|
getCategories(cids, data),
|
||||||
getTags(tids, data),
|
getTags(tids, data),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user