From 69fca8d733f7353ddbfddd4c91883e3bf1495235 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 10 Apr 2024 19:39:41 -0300 Subject: content: gAIPOtherArtistLinks: use associatedContributions --- src/content/dependencies/generateArtistInfoPageChunkItem.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/content/dependencies/generateArtistInfoPageChunkItem.js') diff --git a/src/content/dependencies/generateArtistInfoPageChunkItem.js b/src/content/dependencies/generateArtistInfoPageChunkItem.js index b6f40727..ee172f48 100644 --- a/src/content/dependencies/generateArtistInfoPageChunkItem.js +++ b/src/content/dependencies/generateArtistInfoPageChunkItem.js @@ -1,3 +1,5 @@ +import {empty} from '#sugar'; + export default { extraDependencies: ['html', 'language'], @@ -35,7 +37,7 @@ export default { const parts = ['artistPage.creditList.entry']; const options = {entry: accentedContent}; - if (slots.otherArtistLinks) { + if (!empty(slots.otherArtistLinks)) { parts.push('withArtists'); options.artists = language.formatConjunctionList(slots.otherArtistLinks); } -- cgit 1.3.0-6-gf8a5