Explorar el Código

fix(desktop): show server connection failure

Adam hace 2 meses
padre
commit
e71bc8c0b0
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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() {
   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) {
     if (!health?.healthy) {
       setGlobalStore(
       setGlobalStore(
         "error",
         "error",