diff --git a/components/Editor.js b/components/Editor.js index bf54a06..ce9c585 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -98,7 +98,9 @@ class Editor extends React.Component { updateState = updates => { this.setState(updates, () => { - !this.gist && this.props.onUpdate(this.state) + if (!this.gist) { + this.props.onUpdate(this.state) + } }) }