From 367dc83ecbd2bde7710d78ba065cf23bc4856768 Mon Sep 17 00:00:00 2001 From: AmirAli Angha Date: Wed, 8 Jul 2026 15:55:00 +0330 Subject: [PATCH] Fix const reassignment that broke accounting-frontend Docker build. --- src/parties/GlobalPartySync.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parties/GlobalPartySync.tsx b/src/parties/GlobalPartySync.tsx index b62cdef..ca83ed5 100644 --- a/src/parties/GlobalPartySync.tsx +++ b/src/parties/GlobalPartySync.tsx @@ -18,7 +18,7 @@ export function GlobalPartySync() { const run = async () => { try { - const [owners, customersRaw, currentParties] = await Promise.all([ + const [owners, customersRaw, initialParties] = await Promise.all([ apiGet(ENDPOINTS.OWNERS).then(asList), apiGet(ENDPOINTS.CUSTOMERS), acct.get(ACCOUNTING_ENDPOINTS.PARTIES).then(asList), @@ -28,6 +28,7 @@ export function GlobalPartySync() { ? (customersRaw as ApiCustomer[]) : ((customersRaw as { results?: ApiCustomer[] }).results ?? []) + let currentParties = initialParties const batches = [ ...mergeFunZoneParties(owners, currentParties, 'supplier'), ...mergeFunZoneParties(customers, currentParties, 'customer'),