Skip to content

Commit

Permalink
Fixed: Search from header on Search Page
Browse files Browse the repository at this point in the history
Fixes #511
  • Loading branch information
Qstick committed Sep 24, 2021
1 parent dbbc913 commit 063083a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/Search/SearchFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class SearchFooter extends Component {
isFetching,
defaultIndexerIds,
defaultCategories,
defaultSearchQuery,
searchError
} = this.props;

Expand All @@ -62,6 +63,10 @@ class SearchFooter extends Component {

const newState = {};

if (defaultSearchQuery && defaultSearchQuery !== prevProps.defaultSearchQuery) {
newState.searchQuery = defaultSearchQuery;
}

if (searchIndexerIds !== defaultIndexerIds) {
newState.searchIndexerIds = defaultIndexerIds;
}
Expand Down

0 comments on commit 063083a

Please sign in to comment.