mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-20 13:51:29 +00:00
'Sheet
This commit is contained in:
@@ -39,7 +39,7 @@ var CodeEditor = React.createClass({
|
||||
},
|
||||
|
||||
componentWillReceiveProps: function(nextProps){
|
||||
if(this.codeMirror && nextProps.value !== undefined && this.codeMirror.getValue() != nextProps.value) {
|
||||
if(this.codeMirror && nextProps.value && this.codeMirror.getValue() != nextProps.value) {
|
||||
this.codeMirror.setValue(nextProps.value);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user