Skip to content

Commit

Permalink
Merge pull request #3136 from ONSdigital/fix-skip-logic-page
Browse files Browse the repository at this point in the history
Fix skip logic page when content is after a list collector folder
  • Loading branch information
farres1 authored Jan 13, 2025
2 parents 8175bd0 + 56b53cf commit 5402a50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eq-author/src/utils/getContentBeforeEntity.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ const getContentBeforeEntity = (
return sections;
}

let answers =
!isListCollectorPageType(page.pageType) &&
(page?.answers?.flatMap(preprocessAnswers) || []);
let answers = !isListCollectorPageType(page.pageType)
? page?.answers?.flatMap(preprocessAnswers) || []
: [];

/*
When expression group's condition is "And":
Expand Down

0 comments on commit 5402a50

Please sign in to comment.