0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Fix ESLint errors

This commit is contained in:
Kurtis Miller
2018-09-24 22:44:22 -04:00
committed by Scott Tolksdorf
parent fcb0cd8ee7
commit 34741291c7

View File

@@ -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);