Skip to content

Node.js based forum software built for the modern web

fix: category labels showing up on infinite scroll on category page

Barış Soner Uşaklıdece0628bf59
diff --git a/public/src/modules/topicList.js b/public/src/modules/topicList.js
index bc5a6e4abd..4af7eee9c5 100644
--- a/public/src/modules/topicList.js
+++ b/public/src/modules/topicList.js
@@ -216,9 +216,12 @@ define('topicList', [
'reputation:disabled': data['reputation:disabled'],
template: {
name: templateName,
+ [templateName]: true,
},
};
- tplData.template[templateName] = true;
+ if (ajaxify.data.cid) {
+ tplData.cid = ajaxify.data.cid;
+ }
hooks.fire('action:topics.loading', { topics: topics, after: after, before: before });