fix(UserRow): fallback to group name in case of undefined availableGroup

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
pull/53509/head
Maksim Sukharev 2025-06-11 14:39:37 +07:00 committed by backportbot[bot]
parent 1a7ff4b75b
commit d9738c70c2
1 changed files with 2 additions and 2 deletions

@ -428,7 +428,7 @@ export default {
.map(group => {
// Try to match with more extensive group data
const availableGroup = this.availableGroups.find(g => g.id === group.id)
return availableGroup.name ?? group.name ?? group.id
return availableGroup?.name ?? group.name ?? group.id
})
.join(', ')
},
@ -438,7 +438,7 @@ export default {
.map(group => {
// Try to match with more extensive group data
const availableGroup = this.availableSubAdminGroups.find(g => g.id === group.id)
return availableGroup.name ?? group.name ?? group.id
return availableGroup?.name ?? group.name ?? group.id
})
.join(', ')
},