diff --git a/eq-author-api/src/validation/customKeywords/validatePipingAnswerInTitle.js b/eq-author-api/src/validation/customKeywords/validatePipingAnswerInTitle.js index 212856d443..39a2d14bba 100644 --- a/eq-author-api/src/validation/customKeywords/validatePipingAnswerInTitle.js +++ b/eq-author-api/src/validation/customKeywords/validatePipingAnswerInTitle.js @@ -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)) ) {