Skip to content

Commit

Permalink
fix: issue where form was not cleared when switching workflow template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vafilor committed Dec 29, 2020
1 parent 6fd2a5f commit 6608dcb
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 6608dcb

Please sign in to comment.