Sfoglia il codice sorgente

134432 add optional to avoid lint

soumaeda 2 anni fa
parent
commit
f2e8ce6bee

+ 0 - 1
apps/app/src/components/PageEditor/PageEditor.tsx

@@ -192,7 +192,6 @@ export const PageEditor = React.memo((props: Props): JSX.Element => {
     openHandsontableModal(markdownTable, editor);
   }, []);
 
-
   const checkIsConflict = useCallback((data) => {
     const { s2cMessagePageUpdated } = data;
 

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

@@ -19,7 +19,7 @@ type Props = {
   onUpload?: (files: File[]) => void,
   acceptedFileType?: AcceptedUploadFileType,
   indentSize?: number,
-  openTabelModal: () => void,
+  openTabelModal?: () => void,
 }
 
 export const CodeMirrorEditorMain = (props: Props): JSX.Element => {