mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 03:02:46 +08:00
FIX: category list should set category on topic
This commit is contained in:
parent
91266cdabb
commit
292e8a3756
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user