DEV: when synchornizing state pull tags

In some cases we may want topic tracking state to keep track of tags
this small change ensures we do not remove them if they are already in place
This commit is contained in:
Sam Saffron 2020-06-02 11:41:49 +10:00
parent 326d6d5b0f
commit 7e52106812
No known key found for this signature in database
GPG Key ID: B9606168D2FFD9F5
1 changed files with 4 additions and 0 deletions

View File

@ -354,6 +354,10 @@ const TopicTrackingState = EmberObject.extend({
row.category_id = topic.category.id;
}
if (topic.tags) {
row.tags = topic.tags;
}
tracker.states["t" + topic.id] = row;
});