Ver Fonte

[editor] Properly dispose the result table component

Johan Ahlen há 4 anos atrás
pai
commit
e20e0b094a

+ 5 - 1
desktop/core/src/desktop/js/apps/editor/components/result/ResultTable.vue

@@ -104,6 +104,10 @@
       });
     }
 
+    destroyed(): void {
+      this.subTracker.dispose();
+    }
+
     get hasEmptyResult(): boolean {
       return (
         !this.rows.length &&
@@ -153,7 +157,7 @@
       }
     }
 
-    async onScrollToEnd(): void {
+    async onScrollToEnd(): Promise<void> {
       if (this.hasMore && !this.grayedOut && this.executable && this.executable.result) {
         this.grayedOut = true;
         try {

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/components/result/ResultTableKoBridge.vue

@@ -17,7 +17,7 @@
 -->
 
 <template>
-  <ResultTable :executable="executable" :show-maximize="true" />
+  <ResultTable :executable="executable" />
 </template>
 
 <script lang="ts">