From 5bf775dfc6844a98984309c0945bc99fb1270dd7 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 2 Jun 2023 19:39:13 -0300 Subject: content: generateArtistInfoPage: fix empty contribution descriptions --- src/content/dependencies/generateArtistInfoPage.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/content/dependencies/generateArtistInfoPage.js b/src/content/dependencies/generateArtistInfoPage.js index c319d08b..d0a7ddf3 100644 --- a/src/content/dependencies/generateArtistInfoPage.js +++ b/src/content/dependencies/generateArtistInfoPage.js @@ -42,8 +42,14 @@ export default { .map(contribs => contribs.find(({who}) => who === artist)) .filter(Boolean); - properties.contributionDescriptions = - ownContribs.map(({what}) => what).filter(Boolean); + const contributionDescriptions = + ownContribs + .map(({what}) => what) + .filter(Boolean); + + if (!empty(contributionDescriptions)) { + properties.contributionDescriptions = contributionDescriptions; + } const otherArtistContribs = contribArrays -- cgit 1.3.0-6-gf8a5