feat: get default head img blob

This commit is contained in:
MingLiang Wang
2022-12-21 20:50:27 +08:00
parent e913f4ebcf
commit c194dcd43d
2 changed files with 35 additions and 16 deletions
@@ -119,7 +119,7 @@ export const AppStateProvider = ({ children }: { children?: ReactNode }) => {
const callback = async (user: AccessTokenMessage | null) => {
const workspacesMeta = user ? await getWorkspaces() : [];
const workspaces = await Promise.all(
workspacesMeta.map(async ({ id }) => {
workspacesMeta?.map(async ({ id }) => {
const workspace = (await loadWorkspaceHandler?.(id)) || null;
return workspace;
})