Skip to content

Commit

Permalink
Merge branch 'master' into migration-remove-confirmation-qcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
farres1 authored Jan 16, 2025
2 parents 0cad14a + 45c0e0e commit a1a3afb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @ONSdigital/eq-author
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 a1a3afb

Please sign in to comment.