mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-05 14:50:29 +02:00
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
@ -145,6 +145,33 @@ const App = React.memo((): JSX.Element => {
|
||||
<NewVersionBanner/>
|
||||
<Switch>
|
||||
{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'>
|
||||
<ErrorPage/>
|
||||
</Route>
|
||||
|
Loading…
Reference in New Issue
Block a user