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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -626,11 +626,11 @@ const useList = <QueryResult extends IQueryResult, QueryData extends IDataItem>(
// 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;
}