diff --git a/x-pack/plugins/apm/public/components/app/alerts_overview/index.tsx b/x-pack/plugins/apm/public/components/app/alerts_overview/index.tsx index e469279591f1c..898762c8350fa 100644 --- a/x-pack/plugins/apm/public/components/app/alerts_overview/index.tsx +++ b/x-pack/plugins/apm/public/components/app/alerts_overview/index.tsx @@ -74,26 +74,14 @@ export function AlertsOverview() { - push(history, { - query: { - rangeFrom, - }, - }) + onRangeFromChange={(value) => + push(history, { query: { rangeFrom: value } }) } - onRangeToChange={(rangeTo) => - push(history, { - query: { - rangeTo, - }, - }) + onRangeToChange={(value) => + push(history, { query: { rangeTo: value } }) } - onKueryChange={(kuery) => - push(history, { - query: { - kuery, - }, - }) + onKueryChange={(value) => + push(history, { query: { kuery: value } }) } defaultSearchQueries={apmQueries} onStatusChange={setAlertStatusFilter} diff --git a/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx b/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx index fa152cbe49894..5e98e40525a67 100644 --- a/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx +++ b/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx @@ -234,7 +234,7 @@ function useTabs({ selectedTab }: { selectedTab: Tab['key'] }) { } ); }, - [serviceName, start, end] + [serviceName, start, end, environment] ); const query = omit(