Skip to content

Commit

Permalink
Fix skip logic page when content is after a list collector folder
Browse files Browse the repository at this point in the history
  • Loading branch information
farres1 committed Jan 13, 2025
1 parent 8175bd0 commit 56b53cf
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 56b53cf

Please sign in to comment.