Эх сурвалжийг харах

HUE-4059 [editor] Lost the green bar when the query finishes on query execution

Romain Rigaux 9 жил өмнө
parent
commit
bb92959

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

@@ -1034,7 +1034,9 @@
           if (data.jobs.length > 0) {
             self.jobs(data.jobs);
           }
-          self.progress(data.progress);
+          if (self.status() == 'running') { // Maybe the query finished or failed in the meantime
+            self.progress(data.progress)
+          };
         } else {
           self._ajaxError(data);
         }