From 17f6230129ad739825149ff9c17c0e5b30c18c65 Mon Sep 17 00:00:00 2001 From: Marshal Date: Fri, 7 Aug 2026 05:53:55 +0000 Subject: [PATCH] fix wagon cancellation --- .../portal/src/pages/contracts/NewShipmentPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/edr-freight-web/portal/src/pages/contracts/NewShipmentPage.tsx b/apps/edr-freight-web/portal/src/pages/contracts/NewShipmentPage.tsx index 80fcabc8b..63070003a 100644 --- a/apps/edr-freight-web/portal/src/pages/contracts/NewShipmentPage.tsx +++ b/apps/edr-freight-web/portal/src/pages/contracts/NewShipmentPage.tsx @@ -311,7 +311,7 @@ function mapBookingToShipmentValues( const sizes = (contract.cargoScope ?? []) .map((s) => s.containerSize) .filter((s): s is "20ft" | "40ft" => s === "20ft" || s === "40ft"); - values.containers = (sizes.length ? sizes : ["20ft", "40ft"]).map(lineFor); + values.containers = (sizes.length ? sizes : (["20ft", "40ft"] as const)).map(lineFor); } else { const perItem = bulkUnitOfMeasure(contract) === "PER_ITEM"; const amount = Number(b.cargoTotalWeightVgm ?? 0);