From d06bac8bf2f8fba84ddbf36a5cc11f8261a9b575 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Tue, 24 Dec 2024 11:46:06 +0200 Subject: [PATCH] UI: Fixed not detect delete js module --- ui-ngx/src/app/shared/components/js-func-modules.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-ngx/src/app/shared/components/js-func-modules.component.ts b/ui-ngx/src/app/shared/components/js-func-modules.component.ts index 6269ffc596..84970ff081 100644 --- a/ui-ngx/src/app/shared/components/js-func-modules.component.ts +++ b/ui-ngx/src/app/shared/components/js-func-modules.component.ts @@ -119,6 +119,7 @@ export class JsFuncModulesComponent implements OnInit { removeModule(index: number, emitEvent = true) { (this.modulesFormGroup.get('modules') as UntypedFormArray).removeAt(index, {emitEvent}); + this.modulesFormGroup.get('modules').markAsDirty({emitEvent}); } addModule() {