Skip to content

Commit

Permalink
fix(fiches-service-public): prevent error with malformed accordions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Aug 24, 2020
1 parent 34c086f commit ebf4d82
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ebf4d82

Please sign in to comment.