]> Untitled Git - lemmy.git/commitdiff
Fix search form clearing out.
authorDessalines <tyhou13@gmx.com>
Wed, 29 Apr 2020 17:05:38 +0000 (13:05 -0400)
committerDessalines <tyhou13@gmx.com>
Wed, 29 Apr 2020 17:05:38 +0000 (13:05 -0400)
ui/src/components/search.tsx

index c14f2448ecea9a70aa5dc4e48259f4024a0639fc..a02f035ffc34d8377c421b1c8faa160b75b9abab 100644 (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);