Skip to content

Commit

Permalink
edit unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Kim authored and Chris Kim committed Dec 5, 2023
1 parent b312c18 commit 213c5a1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/site/filters/liquid.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,11 +811,13 @@ module.exports = function registerFilters() {
}));

const beneficiaresAudiences = fieldAudienceBeneficiares
.filter(tag => !!tag)
.map(audience => ({
...audience?.entity,
categoryLabel: 'Audience',
}));
? fieldAudienceBeneficiares
.filter(tag => !!tag)
.map(audience => ({
...audience?.entity,
categoryLabel: 'Audience',
}))
: [];

const audiences = [fieldNonBeneficiares?.entity]
.filter(tag => !!tag)
Expand Down

0 comments on commit 213c5a1

Please sign in to comment.