From f381ba931ed71a83ae8c798c7a179995df6c683f Mon Sep 17 00:00:00 2001 From: "kelvin.yau" Date: Sat, 13 Jun 2026 01:46:03 +0800 Subject: [PATCH] compile fix --- .../DoSearch/batchReleaseReplenishmentHtml.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/DoSearch/batchReleaseReplenishmentHtml.ts b/src/components/DoSearch/batchReleaseReplenishmentHtml.ts index 2008c81..303e4bd 100644 --- a/src/components/DoSearch/batchReleaseReplenishmentHtml.ts +++ b/src/components/DoSearch/batchReleaseReplenishmentHtml.ts @@ -61,16 +61,16 @@ export function deriveReplenishmentFetchParams( }; } - const shopTokens = [ - ...new Set(dosForRelease.map(shopTokenFromDoRow).filter(Boolean)), - ]; - const trucks = [ - ...new Set( + const shopTokens = Array.from( + new Set(dosForRelease.map(shopTokenFromDoRow).filter(Boolean)), + ); + const trucks = Array.from( + new Set( dosForRelease .map((row) => row.truckLanceCode?.trim()) .filter((value): value is string => Boolean(value)), ), - ]; + ); if (shopTokens.length === 1 && trucks.length === 1) { return { shopName: shopTokens[0], truckLaneCode: trucks[0] };