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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user