From 8a3b4429d47d544c4a852d9dfb44e5ed468fd47c Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 24 Oct 2017 08:49:33 -0700 Subject: [PATCH] Dont merge on github --- frontend/components/Editor/Editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;