Skip to content

Commit

Permalink
Put environment back in uiFilters
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
smith committed Feb 24, 2021
1 parent d847958 commit 2829aaa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ function useUiFilters(params: IUrlParams): UIFilters {
(val) => (val ? val.split(',') : [])
) as Partial<Record<LocalUIFilterName, string[]>>;

return useDeepObjectIdentity(localUiFilters);
return useDeepObjectIdentity({
environment: params.environment,
...localUiFilters,
});
}

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

0 comments on commit 2829aaa

Please sign in to comment.