Skip to content

Commit

Permalink
Merge pull request naturalcrit#3733 from naturalcrit/fix-history-stat…
Browse files Browse the repository at this point in the history
…e-snippetbar-error

fix
  • Loading branch information
calculuschild authored Sep 17, 2024
2 parents 30e0426 + 61d77b4 commit a8e5a96
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/homebrew/editor/snippetbar/snippetbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a8e5a96

Please sign in to comment.