From: Dessalines Date: Wed, 29 Apr 2020 17:05:38 +0000 (-0400) Subject: Fix search form clearing out. X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%22?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);