소스 검색

compile fix

production
kelvin.yau 1 주 전
부모
커밋
f381ba931e
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. +6
    -6
      src/components/DoSearch/batchReleaseReplenishmentHtml.ts

+ 6
- 6
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] };


불러오는 중...
취소
저장