mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Lens] Values formatting not working in case of multi-field selection (#127283)
* [Lens] Values formatting not working in case of multi-field selection * Fix a nit Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
9691ad00d3
commit
7594603ac4
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue