From: Dessalines Date: Wed, 29 Apr 2020 17:05:38 +0000 (-0400) Subject: Fix search form clearing out. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%24%7B%60data:application/static/%7B%60https:/%7BmarkdownHelpUrl%7D?a=commitdiff_plain;h=ee4f923f60fc732f9d57cebbeeb6879479886291;p=lemmy.git Fix search form clearing out. --- diff --git a/ui/src/components/search.tsx b/ui/src/components/search.tsx index c14f2448..a02f035f 100644 --- a/ui/src/components/search.tsx +++ b/ui/src/components/search.tsx @@ -109,7 +109,6 @@ export class Search extends Component { 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);