mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-18 23:57:55 +02:00
ezqms-724: make roles related code more robust (#5363)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
@@ -115,7 +115,7 @@
|
||||
const asMixin = hierarchy.as(project, typeType?.targetClass)
|
||||
|
||||
return roles.reduce<RolesAssignment>((prev, { _id }) => {
|
||||
prev[_id] = (asMixin as any)[_id]
|
||||
prev[_id] = (asMixin as any)[_id] ?? []
|
||||
|
||||
return prev
|
||||
}, {})
|
||||
|
||||
Reference in New Issue
Block a user