From: Hanage999 Date: Sun, 26 May 2019 10:22:33 +0000 (+0900) Subject: [Glitch] Fix wrong redirect from getting started to home in advanced Web UI X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=c095eed121b672794d9bd31409c2659b1f2b128b;p=mastodon.git [Glitch] Fix wrong redirect from getting started to home in advanced Web UI Port 4a818ac2deffaff9925ce5b160dbc5385b815a87 to glitch-soc Signed-off-by: Thibaut Girka --- diff --git a/app/javascript/flavours/glitch/features/getting_started/index.js b/app/javascript/flavours/glitch/features/getting_started/index.js index b07789562..0b04120a8 100644 --- a/app/javascript/flavours/glitch/features/getting_started/index.js +++ b/app/javascript/flavours/glitch/features/getting_started/index.js @@ -101,9 +101,9 @@ const NAVIGATION_PANEL_BREAKPOINT = 600 + (285 * 2) + (10 * 2); } 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'); return; }