From 3216b59709b0f57e99034b3aeb58403f563efe87 Mon Sep 17 00:00:00 2001 From: Pigeon Date: Wed, 16 Oct 2024 11:12:09 +0200 Subject: [PATCH] Fixed subject tags in allTags --- src/4-watchpigeon/watchpigeon.11tydata.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/4-watchpigeon/watchpigeon.11tydata.js b/src/4-watchpigeon/watchpigeon.11tydata.js index 254932e..f580524 100644 --- a/src/4-watchpigeon/watchpigeon.11tydata.js +++ b/src/4-watchpigeon/watchpigeon.11tydata.js @@ -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) => {