Skip to content

The open source coding agent.

TypeScript

fix: missing event type (global)

Adam300ec0e0af7c
diff --git a/packages/desktop/src/context/global-sync.tsx b/packages/desktop/src/context/global-sync.tsx
index 1b40cd50782..7d8186a685f 100644
--- a/packages/desktop/src/context/global-sync.tsx
+++ b/packages/desktop/src/context/global-sync.tsx
@@ -142,7 +142,7 @@ export const { use: useGlobalSync, provider: GlobalSyncProvider } = createSimple
const event = e.details
if (directory === "global") {
- switch (event.type) {
+ switch (event?.type) {
case "global.disposed": {
bootstrap()
break