From 57ddfb52ea69e49de2bcc39d7dee433cbae69f95 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 6 Nov 2024 01:26:21 +1100 Subject: [PATCH] [8.15] [Observability] [Alerts table] Fix cannot display alerts error (#198914) (#198938) # Backport This will backport the following commits from `main` to `8.15`: - [[Observability] [Alerts table] Fix cannot display alerts error (#198914)](https://github.com/elastic/kibana/pull/198914) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Bena Kansara <69037875+benakansara@users.noreply.github.com> --- .../alert_overview/helpers/map_rules_params_with_flyout.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/observability_solution/observability/public/components/alert_overview/helpers/map_rules_params_with_flyout.ts b/x-pack/plugins/observability_solution/observability/public/components/alert_overview/helpers/map_rules_params_with_flyout.ts index fce4bd35dbdee..2ecda6419a06f 100644 --- a/x-pack/plugins/observability_solution/observability/public/components/alert_overview/helpers/map_rules_params_with_flyout.ts +++ b/x-pack/plugins/observability_solution/observability/public/components/alert_overview/helpers/map_rules_params_with_flyout.ts @@ -269,7 +269,7 @@ export const mapRuleParamsWithFlyout = (alert: TopAlert): FlyoutThresholdData[] const { thresholdComparator, threshold } = ruleParams as EsQueryRuleParams; const ESQueryFlyoutMap = { observedValue: [alert.fields[ALERT_EVALUATION_VALUE]], - threshold: threshold.join(' AND '), + threshold: [threshold].flat().join(' AND '), comparator: thresholdComparator, pctAboveThreshold: getPctAboveThreshold( threshold,