From 433ed34e64a8e13412e59cf480dd3de7ba99021c Mon Sep 17 00:00:00 2001 From: kurilova Date: Fri, 13 Jun 2025 09:55:49 +0000 Subject: [PATCH] Clear copy is profile status is not Copy --- .../risk-assessment/profile-form/profile-form.component.ts | 2 ++ 1 file changed, 2 insertions(+) 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; } }