kaori пре 4 година
родитељ
комит
81f66fc397
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/app/src/components/PageEditor/CodeMirrorEditor.jsx

+ 1 - 1
packages/app/src/components/PageEditor/CodeMirrorEditor.jsx

@@ -232,7 +232,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
 
   initTextlintSettings() {
     this.textlintValidator = createValidator(this.textlintConfig);
-    this.codemirrorLintConfig = this.props.isTextlintEnabled ? { getAnnotations: this.textlintValidator, async: true } : undefined;
+    this.codemirrorLintConfig = { getAnnotations: this.textlintValidator, async: true };
   }
 
   getCodeMirror() {