mirror of
https://github.com/LemmyNet/lemmy
synced 2024-10-30 15:21:20 +00:00
Fix sidebar bug.
This commit is contained in:
parent
7778baf051
commit
be41b7bd54
1
ui/src/components/main.tsx
vendored
1
ui/src/components/main.tsx
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user