fix(dashboard): Set spread → Array.from for CI tsconfig target
CI/CD / CI · API (dotnet build + test) (push) Successful in 41s
CI/CD / CI · Admin API (dotnet build) (push) Successful in 30s
CI/CD / CI · Dashboard (tsc) (push) Successful in 1m10s
CI/CD / CI · Admin Web (tsc) (push) Successful in 39s
CI/CD / CI · Website (tsc) (push) Successful in 45s
CI/CD / CI · Koja (tsc) (push) Successful in 51s
CI/CD / Deploy · all services (push) Successful in 3m41s

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 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-12 01:30:21 +03:30
parent c47922414a
commit 74f46a4781
@@ -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),