Skip to content

Commit

Permalink
fix: resolve loose of criteria on request Ref gestion-de-projet#1917 (#…
Browse files Browse the repository at this point in the history
…726)

* fix: resolve loose of criteria on request Ref gestion-de-projet#1917

* fix: resolve loose of criteria on request Ref gestion-de-projet#1917
  • Loading branch information
Mehdi-BOUYAHIA authored Mar 16, 2023
1 parent ca6c5b4 commit 1139302
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cohort360_react",
"version": "2.20.4",
"version": "2.20.5",
"private": true,
"dependencies": {
"@apollo/client": "^3.7.0",
Expand Down
2 changes: 1 addition & 1 deletion src/services/aphp/servicePerimeters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const servicesPerimeters: IServicePerimeters = {
perimetersList = perimetersListReponse.data.results.map((perimeterItem: any) => {
let read_access = undefined
if (!defaultPerimetersIds) {
const foundRight = rightsData.results.find(
const foundRight = rightsData?.results?.find(
(rightData: any) => rightData.perimeter.id === +(perimeterItem.perimeter.id ?? '0')
)
read_access = foundRight?.right_read_patient_nominative ? 'DATA_NOMINATIVE' : 'DATA_PSEUDOANONYMISED'
Expand Down

0 comments on commit 1139302

Please sign in to comment.