Skip to content

Commit

Permalink
fix : display eco-organisme name in reviewers list
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitguigal committed Nov 28, 2024
1 parent afe002b commit f380d2c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ export const getActorName = (bsd: Form | Bsda, orgId: string): string => {
company: bsdFormatted?.emitter?.company
},
{ company: bsdFormatted?.destination?.company },
{ company: bsdFormatted?.transporter?.company }
{ company: bsdFormatted?.transporter?.company },
{
company: {
name: bsdFormatted?.ecoOrganisme?.name,
orgId: bsdFormatted?.ecoOrganisme?.siret
}
}
];

const actor = actors.find(actor => actor?.company?.orgId === orgId);
Expand Down
4 changes: 4 additions & 0 deletions front/src/Apps/common/queries/reviews/BsddReviewsQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ const reviewFragment = gql`
processingOperation
}
}
ecoOrganisme {
siret
name
}
}
authoringCompany {
siret
Expand Down

0 comments on commit f380d2c

Please sign in to comment.