Browse Source

fix(desktop): show server connection failure

Adam 3 months ago
parent
commit
b3ab52fe79
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/app/src/context/global-sync.tsx

+ 4 - 1
packages/app/src/context/global-sync.tsx

@@ -307,7 +307,10 @@ function createGlobalSync() {
   })
 
   async function bootstrap() {
-    const health = await globalSDK.client.global.health().then((x) => x.data)
+    const health = await globalSDK.client.global
+      .health()
+      .then((x) => x.data)
+      .catch(() => undefined)
     if (!health?.healthy) {
       setGlobalStore(
         "error",