Fix search form clearing out.

pull/722/head
Dessalines 2020-04-29 13:05:38 -04:00
parent 8cd68f56aa
commit ee4f923f60
1 changed files with 0 additions and 1 deletions

View File

@ -109,7 +109,6 @@ export class Search extends Component<any, SearchState> {
nextProps.history.action == 'POP' ||
nextProps.history.action == 'PUSH'
) {
this.state = this.emptyState;
this.state.q = this.getSearchQueryFromProps(nextProps);
this.state.type_ = this.getSearchTypeFromProps(nextProps);
this.state.sort = this.getSortTypeFromProps(nextProps);