Explorar el Código

change props name

reiji-h hace 2 años
padre
commit
ad7923fc88
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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}
     />
   );
 };