diff --git a/ui/v2.5/src/hooks/ListHook.tsx b/ui/v2.5/src/hooks/ListHook.tsx index d7126721b..16370df1a 100644 --- a/ui/v2.5/src/hooks/ListHook.tsx +++ b/ui/v2.5/src/hooks/ListHook.tsx @@ -626,11 +626,11 @@ const useList = ( // Compare constructed filter with current filter. // If different it's the result of navigation, and we update the filter. if ( - location.search && - location.search !== `?${filter.makeQueryParameters()}` + history.location.search && + history.location.search !== `?${filter.makeQueryParameters()}` ) { newFilter.configureFromQueryParameters( - queryString.parse(location.search) + queryString.parse(history.location.search) ); update = true; }