Skip to content

Commit

Permalink
Merge pull request #234 from Vafilor/fix/form.errors
Browse files Browse the repository at this point in the history
fix: issue where form was not cleared when switching workflow template.
  • Loading branch information
Vafilor authored Dec 29, 2020
2 parents 98e1616 + 6608dcb commit e32bd52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/fields/form/form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export class FormComponent implements OnInit {
@Input() errors = {};

@Input() set fieldData(value: Array<Parameter>) {
this._fieldData = [];
this.form = this.formBuilder.group({});
this._fieldData = value;
}

Expand Down

0 comments on commit e32bd52

Please sign in to comment.