Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
crespocarlos committed Sep 8, 2023
1 parent 31bf214 commit 311c665
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe('useNodeDetailsRedirect', () => {
app: 'metrics',
pathname: 'link-to/pod-detail/example-01',
search: { from: '1546340400000', to: '1546344000000' },
state: {},
});
});

Expand Down Expand Up @@ -72,6 +73,7 @@ describe('useNodeDetailsRedirect', () => {
to: '1546344000000',
assetDetails: '(name:example-01)',
},
state: {},
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const useNodeDetailsRedirect = () => {
...(to ? { [REDIRECT_NODE_DETAILS_TO_KEY]: `${to}` } : undefined),
},
state: {
...(location.pathname
...(location.key
? ({
originAppId: appId,
originSearch: location.search,
Expand All @@ -76,7 +76,7 @@ export const useNodeDetailsRedirect = () => {
},
};
},
[location.pathname, appId, location.search]
[location.key, location.search, location.pathname, appId]
);

return { getNodeDetailUrl };
Expand Down

0 comments on commit 311c665

Please sign in to comment.