diff --git a/projects/valtimo/form-management/src/lib/form-management-edit/form-management-edit.component.ts b/projects/valtimo/form-management/src/lib/form-management-edit/form-management-edit.component.ts index fc7650ce2..771f42014 100644 --- a/projects/valtimo/form-management/src/lib/form-management-edit/form-management-edit.component.ts +++ b/projects/valtimo/form-management/src/lib/form-management-edit/form-management-edit.component.ts @@ -203,9 +203,13 @@ export class FormManagementEditComponent return; } + const parsedDefinition = JSON.parse(value); + + this.modifiedFormDefinition = parsedDefinition; + this._formDefinition$.next({ ...definition, - formDefinition: JSON.parse(value), + formDefinition: parsedDefinition, }); }