diff --git a/ng2-components/ng2-activiti-form/src/components/form-field/form-field.component.ts b/ng2-components/ng2-activiti-form/src/components/form-field/form-field.component.ts index 918cec07f4..c305de9e72 100644 --- a/ng2-components/ng2-activiti-form/src/components/form-field/form-field.component.ts +++ b/ng2-components/ng2-activiti-form/src/components/form-field/form-field.component.ts @@ -104,8 +104,14 @@ export class FormFieldComponent implements OnInit, OnDestroy { } } - private getField() { - return (this.field.params && this.field.params.field) ? this.field.params.field : this.field; + private getField(): FormFieldModel { + if (this.field && this.field.params) { + const wrappedField = this.field.params.field; + if (wrappedField && wrappedField.type) { + return wrappedField; + } + } + return this.field; } private hasController(type: string): boolean {