From 34741291c7f944db7ec64c7f6a85c49c0a836088 Mon Sep 17 00:00:00 2001 From: Kurtis Miller Date: Mon, 24 Sep 2018 22:44:22 -0400 Subject: [PATCH] Fix ESLint errors --- shared/naturalcrit/codeEditor/codeEditor.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx index 3a7a2359b..d2c826c97 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.jsx +++ b/shared/naturalcrit/codeEditor/codeEditor.jsx @@ -41,7 +41,7 @@ const CodeEditor = createClass({ this.codeMirror.on('cursorActivity', this.handleCursorActivity); this.updateSize(); }, - + makeBold : function() { const selection = this.codeMirror.getSelection(); this.codeMirror.replaceSelection(`**${selection}**`, 'around'); @@ -51,7 +51,7 @@ const CodeEditor = createClass({ const selection = this.codeMirror.getSelection(); this.codeMirror.replaceSelection(`*${selection}*`, 'around'); }, - + componentWillReceiveProps : function(nextProps){ if(this.codeMirror && nextProps.value !== undefined && this.codeMirror.getValue() != nextProps.value) { this.codeMirror.setValue(nextProps.value);