浏览代码

HUE-8036 [presentation] Protect from storm of API calls when loading back a query with presentation

Romain Rigaux 7 年之前
父节点
当前提交
a1ed144
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

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

@@ -2853,6 +2853,7 @@ var EditorViewModel = (function() {
       });
       if (typeof notebook.presentationSnippets != "undefined" && notebook.presentationSnippets != null) { // Load
         $.each(notebook.presentationSnippets, function(key, snippet) {
+          snippet.status = 'ready' // Protect from storm of check_statuses
           var _snippet = new Snippet(vm, self, snippet);
           _snippet.init();
           _snippet.previousChartOptions = vm._getPreviousChartOptions(_snippet);