mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-25 09:20:33 +00:00
Merge branch 'dev'
This commit is contained in:
commit
b831979ce3
1 changed files with 0 additions and 1 deletions
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
|
// Necessary for back button for some reason
|
||||||
componentWillReceiveProps(nextProps: any) {
|
componentWillReceiveProps(nextProps: any) {
|
||||||
if (nextProps.history.action == 'POP' || nextProps.history.action == 'PUSH') {
|
if (nextProps.history.action == 'POP' || nextProps.history.action == 'PUSH') {
|
||||||
this.state = this.emptyState;
|
|
||||||
this.state.type_ = this.getListingTypeFromProps(nextProps);
|
this.state.type_ = this.getListingTypeFromProps(nextProps);
|
||||||
this.state.sort = this.getSortTypeFromProps(nextProps);
|
this.state.sort = this.getSortTypeFromProps(nextProps);
|
||||||
this.state.page = this.getPageFromProps(nextProps);
|
this.state.page = this.getPageFromProps(nextProps);
|
||||||
|
|
Loading…
Reference in a new issue