[dashboard] Protect against missing function in old dashboards
@@ -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();
});
