Просмотр исходного кода

134432 add optional to avoid lint

soumaeda 2 лет назад
Родитель
Сommit
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);
     openHandsontableModal(markdownTable, editor);
   }, []);
   }, []);
 
 
-
   const checkIsConflict = useCallback((data) => {
   const checkIsConflict = useCallback((data) => {
     const { s2cMessagePageUpdated } = data;
     const { s2cMessagePageUpdated } = data;
 
 

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

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