Parcourir la source

fix(desktop): show server connection failure

Adam il y a 10 mois
Parent
commit
e71bc8c0b0
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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",