File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
pages/Sandbox/Editor/Content/subviews/CodeEditor Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export default class CodeEditor extends React.PureComponent {
126126 }
127127 }
128128
129- updateCodeMirrorCode ( code : string ) {
129+ updateCodeMirrorCode ( code : string = '' ) {
130130 const pos = this . codemirror . getCursor ( ) ;
131131 this . codemirror . setValue ( code ) ;
132132 this . codemirror . setCursor ( pos ) ;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const initialState: Preferences = {
3838 vimMode : getKey ( VIM_MODE , false ) ,
3939 livePreviewEnabled : getKey ( LIVE_PREVIEW , true ) ,
4040 prettifyOnSaveEnabled : getKey ( PRETTIFY_ON_SAVE , false ) ,
41- lintEnabled : getKey ( LINT_ENABLED , true ) ,
41+ lintEnabled : getKey ( LINT_ENABLED , false ) ,
4242} ;
4343
4444export default ( state = initialState , action ) => {
You can’t perform that action at this time.
0 commit comments