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

+ 2 - 2
packages/editor/src/components/CodeMirrorEditorMain.tsx

@@ -25,7 +25,7 @@ type Props = CodeMirrorEditorProps & {
 
 export const CodeMirrorEditorMain = (props: Props): JSX.Element => {
   const {
-    userName, pageId, initialValue, onOpenEditor, onSave, ...codeMirrorEditorProps
+    userName, pageId, initialValue, onOpenEditor, onSave, ...otherProps
   } = props;
 
   const { data: codeMirrorEditor } = useCodeMirrorEditorIsolated(GlobalCodeMirrorEditorKey.MAIN);
@@ -66,7 +66,7 @@ export const CodeMirrorEditorMain = (props: Props): JSX.Element => {
     <CodeMirrorEditor
       editorKey={GlobalCodeMirrorEditorKey.MAIN}
       onSave={onSave}
-      {...codeMirrorEditorProps}
+      {...otherProps}
     />
   );
 };