From 2113b83eb3110d9a2b88e954e47d25f62c4c545a Mon Sep 17 00:00:00 2001 From: nreese Date: Tue, 23 Nov 2021 14:27:19 -0700 Subject: [PATCH] remove unneeded cast --- .../plugins/maps/public/classes/tooltips/es_tooltip_property.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts b/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts index c0d7d604d1d8..1b677b196c99 100644 --- a/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts +++ b/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts @@ -104,7 +104,7 @@ export class ESTooltipProperty implements ITooltipProperty { } else { const values = Array.isArray(rawValue) ? (rawValue as string[]) : [rawValue as string]; return values.map((value) => { - return esFilters.buildPhraseFilter(indexPatternField, value as string, this._indexPattern); + return esFilters.buildPhraseFilter(indexPatternField, value, this._indexPattern); }); } }