Browse Source

fix: missing event type (global)

Adam 2 months ago
parent
commit
300ec0e0af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/desktop/src/context/global-sync.tsx

+ 1 - 1
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