Преглед на файлове

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

Johan Ahlen преди 6 години
родител
ревизия
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();
   }