diff --git a/modules/ui/src/app/pages/risk-assessment/profile-form/profile-form.component.ts b/modules/ui/src/app/pages/risk-assessment/profile-form/profile-form.component.ts index 0b9730b41..108204865 100644 --- a/modules/ui/src/app/pages/risk-assessment/profile-form/profile-form.component.ts +++ b/modules/ui/src/app/pages/risk-assessment/profile-form/profile-form.component.ts @@ -125,6 +125,8 @@ export class ProfileFormComponent implements OnInit, AfterViewInit { ) { this.copyProfile = profile; this.setCopy.emit(this.copyProfile); + } else if (profile?.status !== ProfileStatus.COPY) { + this.copyProfile = null; } }