Skip to content

Commit

Permalink
fix(docs): match doc type code with lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
pl-buiquang committed Jan 24, 2025
1 parent bf3ebbd commit 64cf431
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/DataTable/DataTableComposition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ const DataTableCompositionLine: React.FC<{
const nda = document.NDA ?? 'Inconnu'
const serviceProvider = document.serviceProvider ?? 'Non renseigné'
const docType = docTypes.docTypes.find(
({ code }) => code === (document?.type?.coding?.[0] ? document.type.coding[0].code : '-')
({ code }) =>
code.toLowerCase() === (document?.type?.coding?.[0] ? document.type.coding[0].code : '-')?.toLowerCase()
)

const findContent = document?.content?.find((content) => content.attachment?.contentType === 'text/plain')
Expand Down

0 comments on commit 64cf431

Please sign in to comment.