From 5730fb4bfe773d8e2036edca22a16e2bb3cc0f0f Mon Sep 17 00:00:00 2001 From: Harshil Sharma Date: Tue, 23 Nov 2021 16:05:45 +0530 Subject: [PATCH] Fixed issue with desktop app causing white screen (#1853) * Fixed issue with desktop app causing white screen * Handled for personal server mode --- webapp/src/app.tsx | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/webapp/src/app.tsx b/webapp/src/app.tsx index 145be4d59..34d49e9a1 100644 --- a/webapp/src/app.tsx +++ b/webapp/src/app.tsx @@ -145,6 +145,33 @@ const App = React.memo((): JSX.Element => { {globalErrorRedirect} + { + Utils.isFocalboardPlugin() && + { + if (loggedIn === false) { + return + } + + if (continueToWelcomeScreen()) { + return + } + + if (Utils.isFocalboardPlugin() && UserSettings.lastWorkspaceId) { + return + } + + if (loggedIn === true) { + return + } + + return null + }} + /> + } +