Переглянути джерело

fix(desktop): show server connection failure

Adam 8 місяців тому
батько
коміт
e71bc8c0b0
1 змінених файлів з 4 додано та 1 видалено
  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",