From 8df8b1c5747c0e54fd613d623edf28c0c2eeffac Mon Sep 17 00:00:00 2001 From: Davide Negretti Date: Fri, 10 Sep 2021 10:50:35 +0200 Subject: [PATCH] [CST-4058] LGTM issues solved --- .../group-registry/group-form/group-form.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') : '', }); }