[report] Protect against pivot conflicting with nested facets
@@ -1029,9 +1029,11 @@ var Collection = function (vm, collection) {
}
if (nestedFacet.aggregate) {
+ if (nestedFacet.aggregate.function) {
nestedFacet.aggregate.function.subscribe(function () {
vm.search();
});
+ }
nestedFacet.aggregate.metrics = ko.computed(function () {
var _field = self.getTemplateField(nestedFacet.field(), self.template.fieldsAttributes());
