mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
Merge pull request #3733 from naturalcrit/fix-history-state-snippetbar-error
fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user