From 6dbbf252b3ac8025c591f9746f69b15169088afa Mon Sep 17 00:00:00 2001 From: kurilova Date: Thu, 15 Jan 2026 12:34:21 +0000 Subject: [PATCH] Prevent changing previously saved profile options after load --- .../risk-assessment/profile-form/profile-form.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 108204865..f97c8ff62 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 @@ -319,7 +319,9 @@ export class ProfileFormComponent implements OnInit, AfterViewInit { if (question.type === FormControlType.SELECT_MULTIPLE) { question.options?.forEach((item, idx) => { if ((answer?.answer as number[])?.includes(idx)) { - this.getFormGroup(index).controls[idx].setValue(true); + this.getFormGroup(index).controls[idx].setValue(true, { + emitEvent: false, + }); } else { this.getFormGroup(index).controls[idx].setValue(false); }