Skip to content

Commit

Permalink
[SECURITY_SOLUTION][ENDPOINT] Fix host list Configuration Status cell…
Browse files Browse the repository at this point in the history
… link loosing list page/size state (elastic#73989)
  • Loading branch information
paul-tavares committed Jul 31, 2020
1 parent 51a640e commit 3cf35e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export const getHostListPath = (
};

export const getHostDetailsPath = (
props: { name: 'hostDetails' | 'hostPolicyResponse' } & HostDetailsUrlProps,
props: { name: 'hostDetails' | 'hostPolicyResponse' } & HostIndexUIQueryParams &
HostDetailsUrlProps,
search?: string
) => {
const { name, ...queryParams } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export const HostList = () => {
render: (policy: HostInfo['metadata']['Endpoint']['policy']['applied'], item: HostInfo) => {
const toRoutePath = getHostDetailsPath({
name: 'hostPolicyResponse',
...queryParams,
selected_host: item.metadata.host.id,
});
const toRouteUrl = formatUrl(toRoutePath);
Expand Down

0 comments on commit 3cf35e8

Please sign in to comment.