fix(desktop): show server connection failure

pull/6158/head
Adam 2025-12-24 20:11:34 -06:00
parent a5301e2ab7
commit e71bc8c0b0
No known key found for this signature in database
GPG Key ID: 9CB48779AF150E75
1 changed files with 4 additions and 1 deletions

View File

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