Skip to content

Commit

Permalink
Merge pull request #3094 from ONSdigital/fix-for-create-a-duplicate-e…
Browse files Browse the repository at this point in the history
…rror

fix for create and duplicate error
  • Loading branch information
martyncolmer authored Jan 26, 2024
2 parents f0a779b + 1216fb2 commit 3342156
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 3342156

Please sign in to comment.