mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
use config's local reference
This commit is contained in:
@@ -84,7 +84,7 @@ class MarkdownEditor extends React.Component {
|
|||||||
}
|
}
|
||||||
eventEmitter.emit('topbar:togglelockbutton', this.state.status)
|
eventEmitter.emit('topbar:togglelockbutton', this.state.status)
|
||||||
|
|
||||||
const newConfig = Object.assign({}, this.props.config)
|
const newConfig = Object.assign({}, config)
|
||||||
newConfig.editor.delfaultStatus = newStatus
|
newConfig.editor.delfaultStatus = newStatus
|
||||||
ConfigManager.set(newConfig)
|
ConfigManager.set(newConfig)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user