Skip to content

Commit

Permalink
fix: form.create would not reinstantiate with config being undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Sep 27, 2017
1 parent 6091183 commit f7b65f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/form/form.component.ts
Expand Up @@ -72,7 +72,7 @@ export class FormComponent implements OnChanges {
}

/* clears the form and uses the given config (falls back to existing one). Renders an empty form. */
create(config?: ItemConfig<any>) {
create(config: ItemConfig<any> = this.config) {
this.dirtyTalk();
this.init(null, config);
}
Expand Down

0 comments on commit f7b65f4

Please sign in to comment.