Эх сурвалжийг харах

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

Romain Rigaux 8 жил өмнө
parent
commit
36595a1

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