mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Fix query text field bug (#1528)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user