Skip to content

Commit

Permalink
Fixes clone method
Browse files Browse the repository at this point in the history
  • Loading branch information
VladLasitsa committed Apr 7, 2020
1 parent 497dfa2 commit e574b06
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/plugins/data/public/search/aggs/agg_configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,16 @@ export class AggConfigs {
return agg.enabled;
};

const aggConfigs = new AggConfigs(this.indexPattern, this.aggs.filter(filterAggs), {
typesRegistry: this.typesRegistry,
});
const aggConfigs = new AggConfigs(
this.indexPattern,
this.aggs.filter(filterAggs),
{
typesRegistry: this.typesRegistry,
},
{
fieldFormats: this.fieldFormats,
}
);

return aggConfigs;
}
Expand Down

0 comments on commit e574b06

Please sign in to comment.