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() {