Skip to content

Commit

Permalink
chore(ngxform): handle undefined form.control
Browse files Browse the repository at this point in the history
review from @loliveira
  • Loading branch information
igortg committed Jan 24, 2019
1 parent 6cbeef8 commit 76f9709
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -77,7 +77,7 @@ export class BaseDynamicFieldComponent<T extends DynamicField> implements OnInit

get formattedValue(): string {
let rawValue = this.form.controls[this.elementId].value;
return rawValue !== null ? rawValue : '-';
return rawValue != null ? rawValue : '-';
}

displayFieldCss(): { [k: string]: boolean } {
Expand Down

0 comments on commit 76f9709

Please sign in to comment.