Răsfoiți Sursa

HUE-7722 [editor] Avoid JS error when user tries to execute zero queries in presentation mode

Enrico Berti 8 ani în urmă
părinte
comite
2d43813f7c

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

@@ -2411,7 +2411,7 @@ var EditorViewModel = (function() {
     };
 
     self.executeAll = function () {
-      if (self.isExecutingAll()) {
+      if (self.isExecutingAll() || self.snippets().length === 0) {
         return;
       }