소스 검색

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

Enrico Berti 8 년 전
부모
커밋
2d43813f7c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 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;
       }