diff --git a/packages/react-fiche-service-public/src/components/Accordion.js b/packages/react-fiche-service-public/src/components/Accordion.js index 708745f27a..be1c2b937e 100644 --- a/packages/react-fiche-service-public/src/components/Accordion.js +++ b/packages/react-fiche-service-public/src/components/Accordion.js @@ -11,6 +11,7 @@ const { spacings } = theme; const isItemOfAccordion = (element) => (element.name === "Chapitre" || element.name === "Cas") && + element.children && element.children.find((child) => child.name === "Titre"); class AccordionWrapper extends React.PureComponent {