Skip to content

Commit

Permalink
fix for create and duplicate error
Browse files Browse the repository at this point in the history
  • Loading branch information
martyncolmer committed Jan 26, 2024
1 parent f0a779b commit 1216fb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eq-author/src/components/RichTextEditor/PipingMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ const PipingMenu = ({

if (
allSupplementaryData &&
!(pageType === "Introduction" && questionnaire.sections[0].repeatingSection)
!(
pageType === "Introduction" &&
questionnaire?.sections[0]?.repeatingSection
)
) {
allSupplementaryData = allSupplementaryData.filter(
(list) => list.listName === "" || list.id === listId
Expand Down

0 comments on commit 1216fb2

Please sign in to comment.