mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
(Released Bugs) Fleet UI: Fix software query params bugs (#16682)
This commit is contained in:
parent
dbbb501358
commit
2a718087cc
2
changes/16672-software-url-states-bug
Normal file
2
changes/16672-software-url-states-bug
Normal file
@ -0,0 +1,2 @@
|
||||
- Fix URL query params to reset when switching tabs
|
||||
- Fix vulnerable software dropdown from switching back to all teams
|
@ -256,10 +256,8 @@ const SoftwarePage = ({ children, router, location }: ISoftwarePageProps) => {
|
||||
|
||||
const navigateToNav = useCallback(
|
||||
(i: number): void => {
|
||||
const navPath = softwareSubNav[i].pathname;
|
||||
router.replace(
|
||||
navPath.concat(location?.search || "").concat(location?.hash || "")
|
||||
);
|
||||
const navPath = softwareSubNav[i].pathname.concat(location?.hash || "");
|
||||
router.replace(navPath);
|
||||
},
|
||||
[location, router]
|
||||
);
|
||||
|
@ -207,9 +207,9 @@ const SoftwareTable = ({
|
||||
routeTemplate: "",
|
||||
queryParams: {
|
||||
query,
|
||||
teamId,
|
||||
orderDirection,
|
||||
orderKey,
|
||||
team_id: teamId,
|
||||
order_direction: orderDirection,
|
||||
order_key: orderKey,
|
||||
vulnerable: isFilterVulnerable,
|
||||
page: 0, // resets page index
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user