浏览代码

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) {