mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(UserRow): fallback to group name in case of undefined availableGroup
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
parent
c4f071a577
commit
f55e1947d5
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(', ')
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue