Browse Source

HUE-8933 [editor] Make sure to clear any previous result when the execute call returns

(cherry picked from commit 6dafa3594f5333f816746fb436184edebd85f987)

Change-Id: Id252f5a3a5b88f9400d39c24ded4bb152c04cc0b
Johan Ahlen 6 years ago
parent
commit
f319fe1e58

+ 1 - 0
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -1633,6 +1633,7 @@ var EditorViewModel = (function() {
         }
         }
 
 
         if (data.status === 0) {
         if (data.status === 0) {
+          self.result.clear();
           self.result.handle(data.handle);
           self.result.handle(data.handle);
           self.result.hasResultset(data.handle.has_result_set);
           self.result.hasResultset(data.handle.has_result_set);
           if (data.handle.sync) {
           if (data.handle.sync) {