forked from p15670423/monkey
Island UI: fix a bug that causes page refresh to redirect to getting started page
This commit is contained in:
parent
42936730a6
commit
67968459ae
|
@ -62,8 +62,9 @@ class AppComponent extends AuthComponent {
|
||||||
super(props);
|
super(props);
|
||||||
let completedSteps = new CompletedSteps(false);
|
let completedSteps = new CompletedSteps(false);
|
||||||
this.state = {
|
this.state = {
|
||||||
|
loading: true,
|
||||||
completedSteps: completedSteps,
|
completedSteps: completedSteps,
|
||||||
islandMode: null,
|
islandMode: undefined,
|
||||||
noAuthLoginAttempted: undefined
|
noAuthLoginAttempted: undefined
|
||||||
};
|
};
|
||||||
this.interval = undefined;
|
this.interval = undefined;
|
||||||
|
@ -158,7 +159,7 @@ class AppComponent extends AuthComponent {
|
||||||
|
|
||||||
needsRedirectionToGettingStarted = (route_path) => {
|
needsRedirectionToGettingStarted = (route_path) => {
|
||||||
return route_path === Routes.LandingPage &&
|
return route_path === Routes.LandingPage &&
|
||||||
this.state.islandMode !== null
|
this.state.islandMode !== null && this.state.islandMode !== undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
redirectTo = (userPath, targetPath) => {
|
redirectTo = (userPath, targetPath) => {
|
||||||
|
|
Loading…
Reference in New Issue