kosei-n 2 năm trước cách đây
mục cha
commit
ac8fc3c8e1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      apps/app/src/components/PageEditor/HandsontableModal.tsx

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

@@ -105,7 +105,7 @@ export const HandsontableModal = (): JSX.Element => {
   const debouncedHandleWindowExpandedChange = debounce(100, handleWindowExpandedChange);
 
   const handleModalOpen = () => {
-    const markdownTableState = table == null && editor != null ? getMarkdownTable(editor.state) : table;
+    const markdownTableState = table == null && editor != null ? getMarkdownTable(editor) : table;
     const initTableInstance = markdownTableState == null ? defaultMarkdownTable : markdownTableState.clone();
     setMarkdownTable(markdownTableState ?? defaultMarkdownTable);
     setMarkdownTableOnInit(initTableInstance);