From 5cfc3bc50990db0656b8b59b58c70510df6a91d6 Mon Sep 17 00:00:00 2001 From: frakarr Date: Thu, 11 Dec 2025 21:22:20 +0100 Subject: [PATCH] Update CondoFinancials.tsx --- pages/CondoFinancials.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/CondoFinancials.tsx b/pages/CondoFinancials.tsx index 073f3dc..48aef3f 100644 --- a/pages/CondoFinancials.tsx +++ b/pages/CondoFinancials.tsx @@ -97,7 +97,8 @@ export const CondoFinancialsPage: React.FC = () => { attachments: formData.attachments }; - await CondoService.saveCondoExpense(payload); + // Fix: Cast payload to any because attachments don't have IDs yet (they are new uploads) + await CondoService.saveCondoExpense(payload as any); setShowModal(false); loadData(); } catch(e) { alert("Errore salvataggio spesa"); }