Kaynağa Gözat

change props name

reiji-h 2 yıl önce
ebeveyn
işleme
ad7923fc88

+ 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}
     />
   );
 };