Skip to content

Commit

Permalink
Fix host list policy status cell link loosing list page/size state
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Jul 31, 2020
1 parent aa68e3b commit d123dc0
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 @@ -262,6 +262,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 d123dc0

Please sign in to comment.