diff --git a/src/services/aphp/servicePerimeters.ts b/src/services/aphp/servicePerimeters.ts index e6cc86bf6..d1317a16f 100644 --- a/src/services/aphp/servicePerimeters.ts +++ b/src/services/aphp/servicePerimeters.ts @@ -134,7 +134,7 @@ const servicesPerimeters: IServicePerimeters = { } const caresiteIds = selectedPopulation - .map((perimeter) => perimeter.id) + .map((perimeter) => perimeter?.id) .filter((item: any, index: number, array: any[]) => item && array.indexOf(item) === index) .join(',')