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 @@ -425,13 +425,27 @@ export default {
425425
426426 userGroupsLabels () {
427427 return this .userGroups
428- .map (group => group .name ?? group .id )
428+ .map (group => {
429+ // Try to match with more extensive group data
430+ const availableGroup = this .availableGroups .find (g => g .id === group .id )
431+ if (availableGroup) {
432+ return availableGroup .name ?? availableGroup .id
433+ }
434+ return group .name ?? group .id
435+ })
429436 .join (' , ' )
430437 },
431438
432439 userSubAdminGroupsLabels () {
433440 return this .userSubAdminGroups
434- .map (group => group .name ?? group .id )
441+ .map (group => {
442+ // Try to match with more extensive group data
443+ const availableGroup = this .availableSubAdminGroups .find (g => g .id === group .id )
444+ if (availableGroup) {
445+ return availableGroup .name ?? availableGroup .id
446+ }
447+ return group .name ?? group .id
448+ })
435449 .join (' , ' )
436450 },
437451
You can’t perform that action at this time.
0 commit comments