FIX: category list should set category on topic

This commit is contained in:
Sam 2018-07-17 10:38:42 +10:00
parent 91266cdabb
commit 292e8a3756

View File

@ -38,7 +38,11 @@ CategoryList.reopenClass({
}
if (c.topics) {
c.topics = c.topics.map(t => Discourse.Topic.create(t));
c.topics = c.topics.map(t => {
const topic = Discourse.Topic.create(t);
topic.set("category", c);
return topic;
});
}
switch (statPeriod) {