Skip to content

Commit

Permalink
[Observability] [Alerts table] Fix cannot display alerts error (elast…
Browse files Browse the repository at this point in the history
…ic#198914)

Resolves elastic#198912

### Testing
- Create ES query rule in Observability
- Open Alert flyout of the ES query alert
- Verify that Alert flyout opens as expected
  • Loading branch information
benakansara authored Nov 5, 2024
1 parent 03cd302 commit f8c01d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,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,
Expand Down

0 comments on commit f8c01d4

Please sign in to comment.