1
0
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:
Baptiste Augrain
2018-11-06 09:40:48 +01:00
parent ced3460673
commit eb61ce2cf2

View File

@@ -84,7 +84,7 @@ class MarkdownEditor extends React.Component {
}
eventEmitter.emit('topbar:togglelockbutton', this.state.status)
const newConfig = Object.assign({}, this.props.config)
const newConfig = Object.assign({}, config)
newConfig.editor.delfaultStatus = newStatus
ConfigManager.set(newConfig)
})