check for changes, don't send if unchanged

This commit is contained in:
or-else
2018-03-28 19:19:18 -07:00
parent ba4f976e3b
commit efcf2680ec
+2
View File
@@ -2639,7 +2639,9 @@
this.setState({moreInfoExpanded: open}); this.setState({moreInfoExpanded: open});
}, },
handleTagsUpdated: function(tags) { handleTagsUpdated: function(tags) {
if (!arrayEqual(this.state.tags.slice(0), tags.slice(0))) {
this.props.onTopicTagsUpdate(this.props.topic, tags); this.props.onTopicTagsUpdate(this.props.topic, tags);
}
}, },
handleContextMenu: function(params) { handleContextMenu: function(params) {
var instance = this; var instance = this;