Skip to content

Commit

Permalink
Merge pull request #3087 from ONSdigital/Fix-for-validation-in-answer…
Browse files Browse the repository at this point in the history
…-piping

fix for validation in answer piping
  • Loading branch information
martyncolmer authored Dec 28, 2023
2 parents cca9779 + f2f8e0f commit 5e08c9b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ module.exports = (ajv) =>

if (!(dataPiped === "supplementary" && list.listName === "")) {
if (
(folder.listId !== undefined && list.id !== folder.listId) ||
(folder.listId === undefined &&
(folder?.listId !== undefined && list.id !== folder?.listId) ||
(folder?.listId === undefined &&
(list.id !== section.repeatingSectionListId ||
!section.repeatingSection))
) {
Expand Down

0 comments on commit 5e08c9b

Please sign in to comment.