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

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;
});