File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
apps/settings/src/components/Users Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -419,13 +419,27 @@ export default {
419419
420420 userGroupsLabels () {
421421 return this .userGroups
422- .map (group => group .name ?? group .id )
422+ .map (group => {
423+ // Try to match with more extensive group data
424+ const availableGroup = this .availableGroups .find (g => g .id === group .id )
425+ if (availableGroup) {
426+ return availableGroup .name ?? availableGroup .id
427+ }
428+ return group .name ?? group .id
429+ })
423430 .join (' , ' )
424431 },
425432
426433 userSubAdminGroupsLabels () {
427434 return this .userSubAdminGroups
428- .map (group => group .name ?? group .id )
435+ .map (group => {
436+ // Try to match with more extensive group data
437+ const availableGroup = this .availableSubAdminGroups .find (g => g .id === group .id )
438+ if (availableGroup) {
439+ return availableGroup .name ?? availableGroup .id
440+ }
441+ return group .name ?? group .id
442+ })
429443 .join (' , ' )
430444 },
431445
You can’t perform that action at this time.
0 commit comments