Преглед изворни кода

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