From be41b7bd540a901ed84050a237ed1fb2f578f30d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 6 Sep 2019 13:04:04 -0700 Subject: [PATCH] Fix sidebar bug. --- ui/src/components/main.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index cce31fced..9ee4afdd4 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);