Skip to content

Commit e32bd52

Browse files
authored
Merge pull request #234 from Vafilor/fix/form.errors
fix: issue where form was not cleared when switching workflow template.
2 parents 98e1616 + 6608dcb commit e32bd52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/fields/form/form.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export class FormComponent implements OnInit {
1717
@Input() errors = {};
1818

1919
@Input() set fieldData(value: Array<Parameter>) {
20+
this._fieldData = [];
21+
this.form = this.formBuilder.group({});
2022
this._fieldData = value;
2123
}
2224

0 commit comments

Comments
 (0)