Skip to content

Commit

Permalink
[Lens] Values formatting not working in case of multi-field selection (
Browse files Browse the repository at this point in the history
…#127283)

* [Lens] Values formatting not working in case of multi-field selection

* Fix a nit

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
DianaDerevyankina and kibanamachine authored Mar 15, 2022
1 parent 9691ad0 commit 7594603
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ export function getAggsFormats(getFieldFormat: GetFieldFormat): FieldFormatInsta
const params = this._params;
const formats = (params.paramsPerField as SerializedFieldFormat[]).map((fieldParams) => {
const isCached = this.formatCache.has(fieldParams);
const cachedFormat =
this.formatCache.get(fieldParams) ||
getFieldFormat({ id: fieldParams.id, params: fieldParams });
const cachedFormat = this.formatCache.get(fieldParams) || getFieldFormat(fieldParams);
if (!isCached) {
this.formatCache.set(fieldParams, cachedFormat);
}
Expand Down

0 comments on commit 7594603

Please sign in to comment.