Skip to content

Commit

Permalink
fix(admin-ui): Display custom fields in StockLocation detail view
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jul 13, 2023
1 parent 8fb9719 commit d36ac84
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class StockLocationDetailComponent
extends TypedBaseDetailComponent<typeof GetStockLocationDetailDocument, 'stockLocation'>
implements OnInit, OnDestroy
{
customFields = this.getCustomFieldConfig('TaxRate');
customFields = this.getCustomFieldConfig('StockLocation');
detailForm = this.formBuilder.group({
name: ['', Validators.required],
description: [''],
Expand Down Expand Up @@ -96,11 +96,10 @@ export class StockLocationDetailComponent
if (!name) {
return;
}
const formValue = this.detailForm.value;
const input = {
name,
description,
customFields: formValue.customFields,
customFields,
} satisfies CreateStockLocationInput;
this.dataService.mutate(CreateStockLocationDocument, { input }).subscribe(
data => {
Expand Down

0 comments on commit d36ac84

Please sign in to comment.