From fb721468fd9747f8bae9afb13e76f2747f0a856a Mon Sep 17 00:00:00 2001 From: Julien Perrin Date: Fri, 15 Nov 2024 16:20:23 +0100 Subject: [PATCH] fix:bug export --- backend/src/http/api/backoffice/gestion-organismes-routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/http/api/backoffice/gestion-organismes-routes.js b/backend/src/http/api/backoffice/gestion-organismes-routes.js index 34af9ad4a..3c4b7e1b7 100644 --- a/backend/src/http/api/backoffice/gestion-organismes-routes.js +++ b/backend/src/http/api/backoffice/gestion-organismes-routes.js @@ -98,7 +98,7 @@ module.exports = ({ db, configuration, emails, middlewares, logger }) => { }, { token: 0 }).stream(); let isKairos = organisme => { - let kairos = organisme.sources.find(s => s === 'kairos'); + let kairos = organisme.sources && organisme.sources.find(s => s === 'kairos'); return kairos === 'kairos' ? 'oui' : 'non'; }; let isResponsable = organisme => organisme.nbAvisResponsablePasFormateurSiretExact > 0;