Skip to content

Commit

Permalink
use config's local reference
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Nov 6, 2018
1 parent ced3460 commit eb61ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/components/MarkdownEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit eb61ce2

Please sign in to comment.