Explorar o código

change props name

reiji-h %!s(int64=2) %!d(string=hai) anos
pai
achega
ad7923fc88
Modificáronse 1 ficheiros con 2 adicións e 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}
     />
   );
 };