Jelajahi Sumber

135766 able to get current table state

soumaeda 2 tahun lalu
induk
melakukan
e5eb3e8f8f
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      apps/app/src/components/PageEditor/HandsontableModal.tsx

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

@@ -11,7 +11,7 @@ import {
 import { debounce } from 'throttle-debounce';
 import { debounce } from 'throttle-debounce';
 
 
 import MarkdownTable from '~/client/models/MarkdownTable';
 import MarkdownTable from '~/client/models/MarkdownTable';
-import { replaceFocusedMarkdownTableWithEditor } from '~/components/PageEditor/markdown-table-util-for-editor';
+import { replaceFocusedMarkdownTableWithEditor, getMarkdownTable } from '~/components/PageEditor/markdown-table-util-for-editor';
 import { useHandsontableModal } from '~/stores/modal';
 import { useHandsontableModal } from '~/stores/modal';
 
 
 import ExpandOrContractButton from '../ExpandOrContractButton';
 import ExpandOrContractButton from '../ExpandOrContractButton';
@@ -108,7 +108,7 @@ export const HandsontableModal = (): JSX.Element => {
     let markdownTableState;
     let markdownTableState;
     if (table == null) {
     if (table == null) {
       // markdowntable state from Editor
       // markdowntable state from Editor
-      markdownTableState = mtu.getMarkdownTable(editor);
+      markdownTableState = getMarkdownTable(editor);
     }
     }
     else {
     else {
       // markdowntable state from View
       // markdowntable state from View