diff options
author | Hanage999 <hanage999@crazynewworld.net> | 2019-05-26 19:22:33 +0900 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-22 01:23:39 -0600 |
commit | ae1f3313ffee64aa718f570f8680abc5eba56af3 (patch) | |
tree | b9c02094f14c443d9ccd337f0d3db0eed3ef0ed7 /app/javascript/flavours/glitch/features | |
parent | b569e552d97606a1aa0043d3a4076952311c25fa (diff) |
[Glitch] Fix wrong redirect from getting started to home in advanced Web UI
Port 4a818ac2deffaff9925ce5b160dbc5385b815a87 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features')
-rw-r--r-- | app/javascript/flavours/glitch/features/getting_started/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |