Explorar el Código

fix: add optional chaining to session_status access (#27247)

Brendan Allan hace 5 meses
padre
commit
3be65dff46
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/app/src/context/global-sync/child-store.ts

+ 1 - 1
packages/app/src/context/global-sync/child-store.ts

@@ -209,7 +209,7 @@ export function createChildStoreManager(input: {
             sessionTotal: 0,
             session_status: {},
             session_working(id: string) {
-              return this.session_status[id].type !== "idle"
+              return this.session_status[id]?.type !== "idle"
             },
             session_diff: {},
             todo: {},