mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 15:33:22 +00:00
fix: Ne pas retourner d'erreur si pas de dossier d'inscription
This commit is contained in:
@ -59,8 +59,8 @@ export default function DashboardPage() {
|
||||
fetchRegisterForms(selectedEstablishmentId)
|
||||
.then((data) => {
|
||||
logger.info('Pending registrations fetched:', data);
|
||||
setCurrentYearRegistrationCount(data.count);
|
||||
const forms = data.registerForms;
|
||||
setCurrentYearRegistrationCount(data.count || 0);
|
||||
const forms = data.registerForms || [];
|
||||
|
||||
// Filtrage des statuts
|
||||
const distribution = [
|
||||
@ -120,7 +120,7 @@ export default function DashboardPage() {
|
||||
setMonthlyRegistrations(monthlyData);
|
||||
})
|
||||
.catch((error) => {
|
||||
logger.error('Error fetching pending registrations:', error);
|
||||
logger.error('Erreur lors du fetch des inscriptions :', error);
|
||||
});
|
||||
|
||||
// Fetch des événements à venir
|
||||
|
||||
Reference in New Issue
Block a user