Skip to content

Commit

Permalink
[AO] Fix issue with alert summary widget refresh on the Alerts page (#…
Browse files Browse the repository at this point in the history
…160159)

Fixes #157245

## Summary

This PR updates the absolute time range when the refresh button is
clicked.

## 🧪 How to test
- On the Alerts page, click on refresh and check the time range of
`_alert_summary` API call, it should be updated with each refresh


![image](https://github.com/elastic/kibana/assets/12370520/0522d770-6cf5-4af7-8c42-bb508e614164)
  • Loading branch information
maryam-saeidi authored Jun 22, 2023
1 parent 74ba8c5 commit 7f906bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/plugins/observability/public/pages/alerts/alerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ function InternalAlertsPage() {
bucketSize?.intervalString || DEFAULT_INTERVAL,
bucketSize?.dateFormat || DEFAULT_DATE_FORMAT
),
[alertSearchBarStateProps.rangeFrom, alertSearchBarStateProps.rangeTo, bucketSize]
// eslint-disable-next-line react-hooks/exhaustive-deps
[alertSearchBarStateProps.rangeFrom, alertSearchBarStateProps.rangeTo, bucketSize, esQuery]
);

useBreadcrumbs([
Expand Down

0 comments on commit 7f906bd

Please sign in to comment.