diff --git a/src/app/access-control/group-registry/group-form/group-form.component.ts b/src/app/access-control/group-registry/group-form/group-form.component.ts index 1a4d6c92ce..39adc61875 100644 --- a/src/app/access-control/group-registry/group-form/group-form.component.ts +++ b/src/app/access-control/group-registry/group-form/group-form.component.ts @@ -206,7 +206,7 @@ export class GroupFormComponent implements OnInit, OnDestroy { if (linkedObject?.name) { this.formBuilderService.insertFormGroupControl(1, this.formGroup, this.formModel, this.groupCommunity); this.formGroup.patchValue({ - groupName: activeGroup != null ? activeGroup.name : '', + groupName: activeGroup.name, groupCommunity: linkedObject?.name ?? '', groupDescription: activeGroup != null ? activeGroup.firstMetadataValue('dc.description') : '', }); @@ -216,7 +216,7 @@ export class GroupFormComponent implements OnInit, OnDestroy { this.groupDescription, ]; this.formGroup.patchValue({ - groupName: activeGroup != null ? activeGroup.name : '', + groupName: activeGroup.name, groupDescription: activeGroup != null ? activeGroup.firstMetadataValue('dc.description') : '', }); }