1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Fix: Improved for the app not to need to reload

This commit is contained in:
roottool
2019-05-07 04:22:03 +09:00
parent f1597f8e84
commit 0a5c4c092a

View File

@@ -533,8 +533,8 @@ export default class CodeEditor extends React.Component {
if (prevProps.keyMap !== this.props.keyMap) { if (prevProps.keyMap !== this.props.keyMap) {
needRefresh = true needRefresh = true
} }
if (!needRefresh && prevProps.customMarkdownLintConfig !== customMarkdownLintConfig) { if (prevProps.customMarkdownLintConfig !== customMarkdownLintConfig) {
this.setCodeEditorLintConfig() this.editor.setOption('lint', this.setCodeEditorLintConfig())
needRefresh = true needRefresh = true
} }