QFix list of workspaces (#7452)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-12-13 19:07:07 +07:00
committed by GitHub
parent 942a6c768f
commit 5832ac119a
+1 -1
View File
@@ -1672,7 +1672,7 @@ export async function getAllWorkspaces (
}
return (await db.workspace.find({})).map((it) => {
it.accounts = it.accounts.map((it) => it.toString())
it.accounts = (it.accounts ?? []).map((it) => it.toString())
return it
})
}