Jelajahi Sumber

HUE-9291 [editor] Only set the result type when defined

Johan Ahlen 5 tahun lalu
induk
melakukan
fcc76001c3

+ 3 - 1
desktop/core/src/desktop/js/apps/notebook2/execution/executionResult.js

@@ -183,7 +183,9 @@ export default class ExecutionResult {
     }
     this.hasMore = resultResponse.has_more;
     this.isEscaped = resultResponse.isEscaped;
-    this.type = resultResponse.type;
+    if (resultResponse.type) {
+      this.type = resultResponse.type;
+    }
     this.fetchedOnce = true;
     this.notify();
   }