diff --git a/packages/admin-ui/src/app/order/components/fulfillment-detail/fulfillment-detail.component.ts b/packages/admin-ui/src/app/order/components/fulfillment-detail/fulfillment-detail.component.ts index 1c1407c1e6..1e5518da6d 100644 --- a/packages/admin-ui/src/app/order/components/fulfillment-detail/fulfillment-detail.component.ts +++ b/packages/admin-ui/src/app/order/components/fulfillment-detail/fulfillment-detail.component.ts @@ -12,7 +12,7 @@ export class FulfillmentDetailComponent { @Input() fulfillmentId: string; @Input() order: OrderDetail.Fragment; - get fulfillment(): OrderDetail.Fulfillment | undefined | null { + get fulfillment(): OrderDetail.Fulfillments | undefined | null { return this.order.fulfillments && this.order.fulfillments.find(f => f.id === this.fulfillmentId); } diff --git a/packages/admin-ui/src/app/order/components/line-fulfillment/line-fulfillment.component.ts b/packages/admin-ui/src/app/order/components/line-fulfillment/line-fulfillment.component.ts index b73d6d9c9e..f9d092c185 100644 --- a/packages/admin-ui/src/app/order/components/line-fulfillment/line-fulfillment.component.ts +++ b/packages/admin-ui/src/app/order/components/line-fulfillment/line-fulfillment.component.ts @@ -16,7 +16,7 @@ export class LineFulfillmentComponent implements OnChanges { @Input() orderState: string; fulfilledCount = 0; fulfillmentStatus: FulfillmentStatus; - fulfillments: Array<{ count: number; fulfillment: OrderDetail.Fulfillment }> = []; + fulfillments: Array<{ count: number; fulfillment: OrderDetail.Fulfillments }> = []; ngOnChanges(changes: SimpleChanges): void { if (this.line) { @@ -45,7 +45,7 @@ export class LineFulfillmentComponent implements OnChanges { private getFulfillments( line: OrderDetail.Lines, - ): Array<{ count: number; fulfillment: OrderDetail.Fulfillment }> { + ): Array<{ count: number; fulfillment: OrderDetail.Fulfillments }> { const counts: { [fulfillmentId: string]: number } = {}; for (const item of line.items) { @@ -61,7 +61,7 @@ export class LineFulfillmentComponent implements OnChanges { (fulfillments, item) => { return item.fulfillment ? [...fulfillments, item.fulfillment] : fulfillments; }, - [] as OrderDetail.Fulfillment[], + [] as OrderDetail.Fulfillments[], ); return Object.entries(counts).map(([id, count]) => { diff --git a/packages/admin-ui/src/app/order/components/order-history/order-history.component.ts b/packages/admin-ui/src/app/order/components/order-history/order-history.component.ts index 63caa2e2f9..1c3268d6a6 100644 --- a/packages/admin-ui/src/app/order/components/order-history/order-history.component.ts +++ b/packages/admin-ui/src/app/order/components/order-history/order-history.component.ts @@ -59,7 +59,7 @@ export class OrderHistoryComponent { } } - getFullfillment(entry: GetOrderHistory.Items): OrderDetail.Fulfillment | undefined { + getFullfillment(entry: GetOrderHistory.Items): OrderDetail.Fulfillments | undefined { if (entry.type === HistoryEntryType.ORDER_FULLFILLMENT && this.order.fulfillments) { return this.order.fulfillments.find(f => f.id === entry.data.fulfillmentId); }