From 0589df51cd60f0ec8ba1561091f40906a1ce4d78 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Thu, 24 Jun 2021 09:00:14 +1000 Subject: [PATCH] Fix query text field bug (#1528) --- ui/v2.5/src/hooks/ListHook.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }