Fixed: Search from header on Search Page

Fixes #511
This commit is contained in:
Qstick
2021-09-23 20:28:22 -05:00
parent dbbc913809
commit 063083a1f1

View File

@@ -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;
} }