浏览代码

HUE-8109 [dashboard] Fix loading back a saved dashboard

Enrico Berti 7 年之前
父节点
当前提交
3f8b0ee
共有 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

@@ -865,7 +865,7 @@ var Collection = function (vm, collection) {
       });
 
       nestedFacet.aggregate.metrics = ko.computed(function() {
-        var _field = self.getTemplateField(nestedFacet.field(), vm.collection.template.fieldsAttributes());
+        var _field = self.getTemplateField(nestedFacet.field(), self.template.fieldsAttributes());
         return self._get_field_operations(_field, facet);
       });
     }