소스 검색

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();
         });