소스 검색

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