瀏覽代碼

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

Johan Ahlen 5 年之前
父節點
當前提交
fcc76001c3
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      desktop/core/src/desktop/js/apps/notebook2/execution/executionResult.js

+ 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();
   }