Skip to content

Commit eb61ce2

Browse files
committed
use config's local reference
1 parent ced3460 commit eb61ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser/components/MarkdownEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class MarkdownEditor extends React.Component {
8484
}
8585
eventEmitter.emit('topbar:togglelockbutton', this.state.status)
8686

87-
const newConfig = Object.assign({}, this.props.config)
87+
const newConfig = Object.assign({}, config)
8888
newConfig.editor.delfaultStatus = newStatus
8989
ConfigManager.set(newConfig)
9090
})

0 commit comments

Comments
 (0)