mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 17:15:32 +08:00
use setter in topic-tracking-state or else get assertion error
This commit is contained in:
parent
4b43edee91
commit
637b110e76
|
@ -174,8 +174,8 @@ const TopicTrackingState = Discourse.Model.extend({
|
|||
if (filter === "new") {
|
||||
list.topics.splice(i, 1);
|
||||
} else {
|
||||
list.topics[i].unseen = false;
|
||||
list.topics[i].dont_sync = true;
|
||||
list.topics[i].set('unseen', false);
|
||||
list.topics[i].set('dont_sync', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user