Browse Source

HUE-4416 [editor] Do not save the coordinator constants in the json model

Romain Rigaux 9 years ago
parent
commit
105c1cce3b

+ 3 - 0
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -1494,6 +1494,9 @@
         snippet.progress = 0; // Remove progress
         snippet.jobs.length = 0;
       });
+      if (cp.schedulerViewModel) {
+        cp.schedulerViewModel.availableTimezones = [];
+      }
 
       $.post("/notebook/api/notebook/save", {
         "notebook": ko.mapping.toJSON(cp, NOTEBOOK_MAPPING),