reiji-h 2 лет назад
Родитель
Сommit
9ea77ea3a9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/editor/src/components/CodeMirrorEditor/CodeMirrorEditor.tsx

+ 1 - 1
packages/editor/src/components/CodeMirrorEditor/CodeMirrorEditor.tsx

@@ -84,7 +84,7 @@ export const CodeMirrorEditor = (props: Props): JSX.Element => {
     if (styleActiveLine == null) {
     if (styleActiveLine == null) {
       return;
       return;
     }
     }
-    const extensions = (styleActiveLine) ? [[]] : [[highlightActiveLine(), highlightActiveLineGutter()]];
+    const extensions = (styleActiveLine) ? [[highlightActiveLine(), highlightActiveLineGutter()]] : [[]];
 
 
     const cleanupFunction = codeMirrorEditor?.appendExtensions?.(extensions);
     const cleanupFunction = codeMirrorEditor?.appendExtensions?.(extensions);
     return cleanupFunction;
     return cleanupFunction;