Skip to content

Commit

Permalink
fix: désactivation du lien RNCP quand pas de fiche trouvée (#3346)
Browse files Browse the repository at this point in the history
Co-authored-by: Raphaël Huchet <[email protected]>
  • Loading branch information
totakoko and rap2hpoutre authored Nov 7, 2023
1 parent 700c601 commit 03a7ff6
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions ui/modules/organismes/IndicateursEffectifsParFormationTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,19 @@ function IndicateursEffectifsParFormationTable(props: IndicateursEffectifsParFor
niveauAvecFormations.formations.map((formation) => (
<Tr key={formation.rncp_code}>
<Td>
<Link
display="block"
fontSize="1rem"
width="var(--chakra-sizes-lg)"
title={formation.rncp?.intitule ?? "Fiche non trouvée"}
onClick={() => setSelectedCodeRNCP(formation.rncp_code)}
>
{formation.rncp?.intitule ?? "Fiche non trouvée"}
</Link>
{formation.rncp?.intitule ? (
<Link
display="block"
fontSize="1rem"
width="var(--chakra-sizes-lg)"
title={formation.rncp.intitule}
onClick={() => setSelectedCodeRNCP(formation.rncp_code)}
>
{formation.rncp.intitule}
</Link>
) : (
<Text fontSize="1rem">Fiche non trouvée</Text>
)}
<Text mt={2} color="#3A3A3A" fontSize="omega">
RNCP&nbsp;:{" "}
{formation.rncp_code ? (
Expand Down

0 comments on commit 03a7ff6

Please sign in to comment.