Dax Raad 5 месяцев назад
Родитель
Сommit
721869353b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      cloud/app/src/context/auth.ts

+ 1 - 1
cloud/app/src/context/auth.ts

@@ -52,7 +52,7 @@ export const getActor = query(async (): Promise<Actor.Info> => {
     }
   }
   const workspaceHint = splits[1]
-  const accounts = Object.keys(auth.data.account)
+  const accounts = Object.keys(auth.data.account ?? {})
   const result = await Database.transaction(async (tx) => {
     return await tx
       .select({