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) (#127740)

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

* Fix a nit

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 7594603)
  • Loading branch information
DianaDerevyankina authored Mar 15, 2022
1 parent 56ae4bc commit 298cca1
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 298cca1

Please sign in to comment.