diff --git a/src/components/project/Project.vue b/src/components/project/Project.vue index 7d048e3..3dfaef3 100644 --- a/src/components/project/Project.vue +++ b/src/components/project/Project.vue @@ -21,6 +21,7 @@
    { if (!projects.value || !user.value) return []; return projects.value.flatMap((project) => { - if (!project.notifications) return []; + if (!Array.isArray(project.notifications)) { + if (project.notifications) console.error(`[Notifications] project.notifications n'est pas un tableau pour "${project.slug}"`, project.notifications); + return []; + } return project.notifications.map((notification) => ({ ...notification,