diff --git a/admin/src/scenes/volontaires/utils/index.js b/admin/src/scenes/volontaires/utils/index.js index 212415c8bd..b08f683327 100644 --- a/admin/src/scenes/volontaires/utils/index.js +++ b/admin/src/scenes/volontaires/utils/index.js @@ -26,7 +26,6 @@ import { formatPhoneE164 } from "../../../utils/formatPhoneE164"; import { youngCheckinField } from "@/utils"; export const getFilterArray = (user, bus, session, classes, etablissements) => { - console.log("🚀 ~ getFilterArray ~ classes:", classes); return [ { title: "Cohorte", name: "cohort", parentGroup: "GĂ©nĂ©ral", missingLabel: "Non renseignĂ©", sort: (e) => orderCohort(e) }, { title: "Cohorte d'origine", name: "originalCohort", parentGroup: "GĂ©nĂ©ral", missingLabel: "Non renseignĂ©", sort: orderCohort }, @@ -182,8 +181,7 @@ export const getFilterArray = (user, bus, session, classes, etablissements) => { parentGroup: "Phase 1", missingLabel: "Non renseignĂ©", translate: (item) => { - console.log("🚀 ~ getFilterArray ~ item:", typeof item); - if (item === "N/A" || !classes.length) return item; + if (item === "N/A") return item; return classes[item] || "N/A - SupprimĂ©"; }, }, @@ -193,7 +191,7 @@ export const getFilterArray = (user, bus, session, classes, etablissements) => { parentGroup: "Phase 1", missingLabel: "Non renseignĂ©", translate: (item) => { - if (item === "N/A" || !etablissements.length) return item; + if (item === "N/A") return item; return etablissements[item] || "N/A - SupprimĂ©"; }, }, @@ -203,7 +201,7 @@ export const getFilterArray = (user, bus, session, classes, etablissements) => { parentGroup: "Phase 1", missingLabel: "Non renseignĂ©", translate: (item) => { - if (item === "N/A" || !session.length) return item; + if (item === "N/A") return item; return session[item] || "N/A - SupprimĂ©"; }, }, @@ -269,7 +267,7 @@ export const getFilterArray = (user, bus, session, classes, etablissements) => { parentGroup: "Phase 1", missingLabel: "Non renseignĂ©", translate: (item) => { - if (item === "N/A" || !bus?.length) return item; + if (item === "N/A") return item; return bus[item] || item; }, },