Parcourir la source

134432 add a dependency

soumaeda il y a 2 ans
Parent
commit
f714e35151
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      apps/app/src/components/PageEditor/PageEditor.tsx

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

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