소스 검색

HUE-4116 [editor] Do not break on unsaved query

Enrico Berti 9 년 전
부모
커밋
211300c
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 3 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -3215,7 +3215,9 @@ ${ hueIcons.symbols() }
       });
 
       $(document).on('shown', 'a[href="#scheduleTab"]', function(){
-        renderJqCron();
+        if (typeof renderJqCron !== 'undefined'){
+          renderJqCron();
+        }
       });
 
       $(document).on("gridShown", function (e, snippet) {