Skip to content

Commit 2829aaa

Browse files
committed
Put environment back in uiFilters
`environment` is still used in `uiFilters` in UX, but not anywhere else. It was removed when removing environment from UI filters for the rest of APM and broke UX's environment switcher. Put it back.
1 parent d847958 commit 2829aaa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

x-pack/plugins/apm/public/context/url_params_context/url_params_context.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ function useUiFilters(params: IUrlParams): UIFilters {
3535
(val) => (val ? val.split(',') : [])
3636
) as Partial<Record<LocalUIFilterName, string[]>>;
3737

38-
return useDeepObjectIdentity(localUiFilters);
38+
return useDeepObjectIdentity({
39+
environment: params.environment,
40+
...localUiFilters,
41+
});
3942
}
4043

4144
const defaultRefresh = (_time: TimeRange) => {};

0 commit comments

Comments
 (0)