Update CondoFinancials.tsx
This commit is contained in:
@@ -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"); }
|
||||||
|
|||||||
Reference in New Issue
Block a user