Browse Source

clean code

jam411 3 years ago
parent
commit
26d3598341
1 changed files with 3 additions and 3 deletions
  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++) {