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

135766 able to get current table state

soumaeda 2 лет назад
Родитель
Сommit
e5eb3e8f8f
1 измененных файлов с 2 добавлено и 2 удалено
  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 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 ExpandOrContractButton from '../ExpandOrContractButton';
@@ -108,7 +108,7 @@ export const HandsontableModal = (): JSX.Element => {
     let markdownTableState;
     if (table == null) {
       // markdowntable state from Editor
-      markdownTableState = mtu.getMarkdownTable(editor);
+      markdownTableState = getMarkdownTable(editor);
     }
     else {
       // markdowntable state from View