Fix query text field bug (#1528)

This commit is contained in:
WithoutPants
2021-06-24 09:00:14 +10:00
committed by GitHub
parent 4e08e37d74
commit 0589df51cd

View File

@@ -626,11 +626,11 @@ const useList = <QueryResult extends IQueryResult, QueryData extends IDataItem>(
// Compare constructed filter with current filter. // Compare constructed filter with current filter.
// If different it's the result of navigation, and we update the filter. // If different it's the result of navigation, and we update the filter.
if ( if (
location.search && history.location.search &&
location.search !== `?${filter.makeQueryParameters()}` history.location.search !== `?${filter.makeQueryParameters()}`
) { ) {
newFilter.configureFromQueryParameters( newFilter.configureFromQueryParameters(
queryString.parse(location.search) queryString.parse(history.location.search)
); );
update = true; update = true;
} }