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,
|
||||
defaultIndexerIds,
|
||||
defaultCategories,
|
||||
defaultSearchQuery,
|
||||
searchError
|
||||
} = this.props;
|
||||
|
||||
@@ -62,6 +63,10 @@ class SearchFooter extends Component {
|
||||
|
||||
const newState = {};
|
||||
|
||||
if (defaultSearchQuery && defaultSearchQuery !== prevProps.defaultSearchQuery) {
|
||||
newState.searchQuery = defaultSearchQuery;
|
||||
}
|
||||
|
||||
if (searchIndexerIds !== defaultIndexerIds) {
|
||||
newState.searchIndexerIds = defaultIndexerIds;
|
||||
}
|
||||
|
Reference in New Issue
Block a user