fix: Update PrimeReact to v10.8.3 and fix all compilation errors
This commit is contained in:
@@ -138,9 +138,9 @@ const ChantiersRetardPage = () => {
|
||||
let updatedChantier = { ...selectedChantier };
|
||||
|
||||
if (actionType === 'extend' && newEndDate) {
|
||||
updatedChantier.dateFinPrevue = newEndDate;
|
||||
updatedChantier.dateFinPrevue = newEndDate.toISOString().split('T')[0];
|
||||
} else if (actionType === 'status') {
|
||||
updatedChantier.statut = 'SUSPENDU';
|
||||
updatedChantier.statut = 'SUSPENDU' as any;
|
||||
}
|
||||
|
||||
await chantierService.update(selectedChantier.id, updatedChantier);
|
||||
@@ -392,6 +392,7 @@ STATISTIQUES:
|
||||
value={chantiers}
|
||||
selection={selectedChantiers}
|
||||
onSelectionChange={(e) => setSelectedChantiers(e.value)}
|
||||
selectionMode="multiple"
|
||||
dataKey="id"
|
||||
paginator
|
||||
rows={10}
|
||||
@@ -471,4 +472,6 @@ STATISTIQUES:
|
||||
);
|
||||
};
|
||||
|
||||
export default ChantiersRetardPage;
|
||||
export default ChantiersRetardPage;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user