2
0
Эх сурвалжийг харах

fix(desktop): show server connection failure

Adam 3 сар өмнө
parent
commit
e71bc8c0b0

+ 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",