Update CondoFinancials.tsx

This commit is contained in:
2025-12-11 21:22:20 +01:00
committed by GitHub
parent 58fda356c3
commit 5cfc3bc509

View File

@@ -97,7 +97,8 @@ export const CondoFinancialsPage: React.FC = () => {
attachments: formData.attachments 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); setShowModal(false);
loadData(); loadData();
} catch(e) { alert("Errore salvataggio spesa"); } } catch(e) { alert("Errore salvataggio spesa"); }