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