1
0
Fork 0
forked from fedi/mastodon

Fix wrong redirect from getting started to home in advanced Web UI (#10839)

* update Ruby to 2.5.3

* Link to Getting Started will not redirect to Home in multi-column UI (https://github.com/tootsuite/mastodon/pull/10835)
This commit is contained in:
Hanage999 2019-05-26 19:22:33 +09:00 committed by Eugen Rochko
parent 0e445ebb13
commit 4a818ac2de

View file

@ -76,9 +76,9 @@ class GettingStarted extends ImmutablePureComponent {
}; };
componentDidMount () { componentDidMount () {
const { myAccount, fetchFollowRequests } = this.props; const { myAccount, fetchFollowRequests, multiColumn } = this.props;
if (window.innerWidth >= NAVIGATION_PANEL_BREAKPOINT) { if (!multiColumn && window.innerWidth >= NAVIGATION_PANEL_BREAKPOINT) {
this.context.router.history.replace('/timelines/home'); this.context.router.history.replace('/timelines/home');
return; return;
} }