Fixed issue with desktop app causing white screen (#1853)
* Fixed issue with desktop app causing white screen * Handled for personal server mode
This commit is contained in:
parent
deaffe7863
commit
5730fb4bfe
1 changed files with 27 additions and 0 deletions
|
@ -145,6 +145,33 @@ const App = React.memo((): JSX.Element => {
|
||||||
<NewVersionBanner/>
|
<NewVersionBanner/>
|
||||||
<Switch>
|
<Switch>
|
||||||
{globalErrorRedirect}
|
{globalErrorRedirect}
|
||||||
|
{
|
||||||
|
Utils.isFocalboardPlugin() &&
|
||||||
|
<Route
|
||||||
|
path='/'
|
||||||
|
exact={true}
|
||||||
|
render={() => {
|
||||||
|
if (loggedIn === false) {
|
||||||
|
return <Redirect to='/login'/>
|
||||||
|
}
|
||||||
|
|
||||||
|
if (continueToWelcomeScreen()) {
|
||||||
|
return <Redirect to={'/welcome'}/>
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Utils.isFocalboardPlugin() && UserSettings.lastWorkspaceId) {
|
||||||
|
return <Redirect to={`/workspace/${UserSettings.lastWorkspaceId}/${UserSettings.lastBoardId}/${UserSettings.lastViewId}`}/>
|
||||||
|
}
|
||||||
|
|
||||||
|
if (loggedIn === true) {
|
||||||
|
return <BoardPage/>
|
||||||
|
}
|
||||||
|
|
||||||
|
return null
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
|
||||||
<Route path='/error'>
|
<Route path='/error'>
|
||||||
<ErrorPage/>
|
<ErrorPage/>
|
||||||
</Route>
|
</Route>
|
||||||
|
|
Loading…
Reference in a new issue