diff --git a/src/components/structures/TagPanel.js b/src/components/structures/TagPanel.js
index 0b6dc9fc75..77259c863d 100644
--- a/src/components/structures/TagPanel.js
+++ b/src/components/structures/TagPanel.js
@@ -84,7 +84,10 @@ const TagPanel = React.createClass({
},
onMouseDown(e) {
- dis.dispatch({action: 'deselect_tags'});
+ // only dispatch if its not a no-op
+ if (this.state.selectedTags.length > 0) {
+ dis.dispatch({action: 'deselect_tags'});
+ }
},
onCreateGroupClick(ev) {
@@ -113,17 +116,18 @@ const TagPanel = React.createClass({
/>;
});
- const clearButton = this.state.selectedTags.length > 0 ?
-