From d66c19825a85cd950a97b7d06a06f2b9e58eb932 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);