From 74f46a478138852334ed3b4014d3bd15507123ed Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Fri, 12 Jun 2026 01:30:21 +0330 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20Set=20spread=20=E2=86=92=20Ar?= =?UTF-8?q?ray.from=20for=20CI=20tsconfig=20target?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Local tsconfig.json has uncommitted target changes, so `[...voidIds]` passed locally but failed CI's tsc (TS2802, target < es2015). Co-Authored-By: Claude Fable 5 --- .../src/components/reports/payment-corrections-tab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/dashboard/src/components/reports/payment-corrections-tab.tsx b/web/dashboard/src/components/reports/payment-corrections-tab.tsx index f75a78f..1e1e7be 100644 --- a/web/dashboard/src/components/reports/payment-corrections-tab.tsx +++ b/web/dashboard/src/components/reports/payment-corrections-tab.tsx @@ -312,7 +312,7 @@ function CorrectionDialog({ const mutation = useMutation({ mutationFn: () => apiPost(`/api/cafes/${cafeId}/orders/${order.id}/payments/corrections`, { - voidPaymentIds: [...voidIds], + voidPaymentIds: Array.from(voidIds), replacements: replacements.map((r) => ({ method: r.method, amount: Number(r.amount),