Skip to content

Commit

Permalink
fix: secure perimeter.id when perimeter is undefined Ref gestion-de-p…
Browse files Browse the repository at this point in the history
…rojet#1744
  • Loading branch information
Mehdi-BOUYAHIA committed Mar 24, 2023
1 parent 16ee629 commit 57a64f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/aphp/servicePerimeters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(',')

Expand Down

0 comments on commit 57a64f5

Please sign in to comment.