]> Untitled Git - lemmy.git/commitdiff
Fix sidebar bug.
authorDessalines <tyhou13@gmx.com>
Fri, 6 Sep 2019 20:04:04 +0000 (13:04 -0700)
committerDessalines <tyhou13@gmx.com>
Fri, 6 Sep 2019 20:04:04 +0000 (13:04 -0700)
ui/src/components/main.tsx

index cce31fced2f7557619788808bc81e586ac034796..9ee4afdd4873436ce0fec70894c4cf4e5875f365 100644 (file)
@@ -107,7 +107,6 @@ export class Main extends Component<any, MainState> {
   // 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);