kosei-n 2 年之前
父節點
當前提交
ac8fc3c8e1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);