[Glitch] Fix wrong redirect from getting started to home in advanced Web UI

Port 4a818ac2de to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
Hanage999 authored and ThibG committed 2019-06-13 22:15:31 +02:00
1 parent ff88387a4a
commit c095eed121
1 file changed
+2 -2
@@ -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;
}