diff --git a/frontend/components/Editor/Editor.js b/frontend/components/Editor/Editor.js index 7e814dca..0f376881 100644 --- a/frontend/components/Editor/Editor.js +++ b/frontend/components/Editor/Editor.js @@ -73,9 +73,9 @@ type KeyData = { } } - onChange = (state: State) => { - if (this.editorState !== state) { - this.props.onChange(Markdown.serialize(state)); + onChange = (editorState: State) => { + if (this.editorState !== editorState) { + this.props.onChange(Markdown.serialize(editorState)); } this.editorState = editorState;