[SECURITY_SOLUTION][ENDPOINT] Fix host list Configuration Status cell link loosing list page/size state (#73989)

This commit is contained in:
Paul Tavares 2020-07-31 18:39:59 -04:00 committed by GitHub
parent 53b1875093
commit a216418fe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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);