mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
@@ -52,6 +52,7 @@ class SearchFooter extends Component {
|
|||||||
isFetching,
|
isFetching,
|
||||||
defaultIndexerIds,
|
defaultIndexerIds,
|
||||||
defaultCategories,
|
defaultCategories,
|
||||||
|
defaultSearchQuery,
|
||||||
searchError
|
searchError
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
@@ -62,6 +63,10 @@ class SearchFooter extends Component {
|
|||||||
|
|
||||||
const newState = {};
|
const newState = {};
|
||||||
|
|
||||||
|
if (defaultSearchQuery && defaultSearchQuery !== prevProps.defaultSearchQuery) {
|
||||||
|
newState.searchQuery = defaultSearchQuery;
|
||||||
|
}
|
||||||
|
|
||||||
if (searchIndexerIds !== defaultIndexerIds) {
|
if (searchIndexerIds !== defaultIndexerIds) {
|
||||||
newState.searchIndexerIds = defaultIndexerIds;
|
newState.searchIndexerIds = defaultIndexerIds;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user