Skip to content

Commit

Permalink
fix(admin-ui): Fix CustomerDetail display of custom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Dec 4, 2019
1 parent e0071f8 commit 02757ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<vdr-custom-field-control
*ngIf="customFieldIsSet(customField.name)"
entityName="Customer"
[customFieldsFormGroup]="detailForm.get('customFields')"
[customFieldsFormGroup]="detailForm.get(['customer', 'customFields'])"
[customField]="customField"
></vdr-custom-field-control>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class CustomerDetailComponent extends BaseDetailComponent<CustomerWithOrd
}

if (this.customFields.length) {
const customFieldsGroup = this.detailForm.get(['customFields']) as FormGroup;
const customFieldsGroup = this.detailForm.get(['customer', 'customFields']) as FormGroup;

for (const fieldDef of this.customFields) {
const key = fieldDef.name;
Expand Down

0 comments on commit 02757ea

Please sign in to comment.