From: Dessalines Date: Fri, 6 Sep 2019 20:04:04 +0000 (-0700) Subject: Fix sidebar bug. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%22https:/hacktivis.me/%7Bpost.url%7D?a=commitdiff_plain;h=d66c19825a85cd950a97b7d06a06f2b9e58eb932;p=lemmy.git Fix sidebar bug. --- diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index cce31fce..9ee4afdd 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -107,7 +107,6 @@ export class Main extends Component { // Necessary for back button for some reason componentWillReceiveProps(nextProps: any) { if (nextProps.history.action == 'POP' || nextProps.history.action == 'PUSH') { - this.state = this.emptyState; this.state.type_ = this.getListingTypeFromProps(nextProps); this.state.sort = this.getSortTypeFromProps(nextProps); this.state.page = this.getPageFromProps(nextProps);