mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43: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)
|
fetchRegisterForms(selectedEstablishmentId)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
logger.info('Pending registrations fetched:', data);
|
logger.info('Pending registrations fetched:', data);
|
||||||
setCurrentYearRegistrationCount(data.count);
|
setCurrentYearRegistrationCount(data.count || 0);
|
||||||
const forms = data.registerForms;
|
const forms = data.registerForms || [];
|
||||||
|
|
||||||
// Filtrage des statuts
|
// Filtrage des statuts
|
||||||
const distribution = [
|
const distribution = [
|
||||||
@ -120,7 +120,7 @@ export default function DashboardPage() {
|
|||||||
setMonthlyRegistrations(monthlyData);
|
setMonthlyRegistrations(monthlyData);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
logger.error('Error fetching pending registrations:', error);
|
logger.error('Erreur lors du fetch des inscriptions :', error);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Fetch des événements à venir
|
// Fetch des événements à venir
|
||||||
|
|||||||
Reference in New Issue
Block a user