jam411 3 лет назад
Родитель
Сommit
26d3598341
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/app/src/components/PageEditor/HandsontableModal.jsx

+ 3 - 3
packages/app/src/components/PageEditor/HandsontableModal.jsx

@@ -335,9 +335,9 @@ export default class HandsontableModal extends React.PureComponent {
     const align = this.state.markdownTable.options.align;
     const hotInstance = this.hotTable.hotInstance;
 
-    // if (hotInstance.isDestroyed === true) {
-    //   return;
-    // }
+    if (hotInstance.isDestroyed === true) {
+      return;
+    }
 
     for (let i = 0; i < align.length; i++) {
       for (let j = 0; j < hotInstance.countRows(); j++) {