diff --git a/client/homebrew/editor/snippetbar/snippetbar.jsx b/client/homebrew/editor/snippetbar/snippetbar.jsx index e19889cc7..f183e0876 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.jsx +++ b/client/homebrew/editor/snippetbar/snippetbar.jsx @@ -68,9 +68,12 @@ const Snippetbar = createClass({ }); }; - this.setState({ - historyExists : historyExists(this.props.brew) - }); + if(historyExists(this.props.brew) != this.state.historyExists){ + this.setState({ + historyExists : !this.state.historyExists + }); + }; + }, mergeCustomizer : function(oldValue, newValue, key) {