mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-12 17:26:17 +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) {
|
||||
needRefresh = true
|
||||
}
|
||||
if (!needRefresh && prevProps.customMarkdownLintConfig !== customMarkdownLintConfig) {
|
||||
this.setCodeEditorLintConfig()
|
||||
if (prevProps.customMarkdownLintConfig !== customMarkdownLintConfig) {
|
||||
this.editor.setOption('lint', this.setCodeEditorLintConfig())
|
||||
|
||||
needRefresh = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user