Merge pull request #53509 from nextcloud/backport/53436/stable31

[stable31] fix(UserRow): fallback to group name in case of undefined availableGroup
This commit is contained in:
Andy Scherzinger 2025-06-18 11:10:40 +02:00 committed by GitHub
commit acab1571df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 8 deletions

View file

@ -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(', ')
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long