From 61d77b4d2d9e2a2a1455dff56d0707544215c7df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Tue, 17 Sep 2024 19:55:50 +0200 Subject: [PATCH] fix --- client/homebrew/editor/snippetbar/snippetbar.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) {