浏览代码

HUE-7802 [dashboard] Protect against missing function in old dashboards

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

+ 1 - 1
desktop/libs/dashboard/src/dashboard/static/dashboard/js/search.ko.js

@@ -738,7 +738,7 @@ var Collection = function (vm, collection) {
           vm.search();
         });
       }
-      if (facet.properties.aggregate) {
+      if (facet.properties.aggregate && facet.properties.aggregate.function) {
         facet.properties.aggregate.function.subscribe(function () {
           vm.search();
         });