jam411 hace 3 años
padre
commit
26d3598341
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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 align = this.state.markdownTable.options.align;
     const hotInstance = this.hotTable.hotInstance;
     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 i = 0; i < align.length; i++) {
       for (let j = 0; j < hotInstance.countRows(); j++) {
       for (let j = 0; j < hotInstance.countRows(); j++) {