Skip to content

Commit

Permalink
Fixed subject tags in allTags
Browse files Browse the repository at this point in the history
  • Loading branch information
Antifantwerp-Pigeon committed Oct 16, 2024
1 parent ed2c6d1 commit 3216b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/4-watchpigeon/watchpigeon.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function (configData) {
areaArticle.subjects = article.subjects.map(subject => subject.AFAWatchpigeonSubjects_id)
}

areaArticle.allTags = areaArticle.parties.map(party => party.id).concat(article.subjects.map(subject => subject.id)).join(",");
areaArticle.allTags = areaArticle.parties.map(party => party.id).concat(areaArticle.subjects.map(subject => subject.id)).join(",");

// Set wasn't working reliably with the subject objects
areaArticle.subjects.forEach((articleSubject) => {
Expand Down

0 comments on commit 3216b59

Please sign in to comment.