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"); }