« get me outta code hell

content: gAIPOtherArtistLinks: use associatedContributions - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateArtistInfoPageChunkItem.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-10 19:39:41 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-12 17:26:47 -0300
commit69fca8d733f7353ddbfddd4c91883e3bf1495235 (patch)
treee047ad20abe50739c316ae9574a345a98f215469 /src/content/dependencies/generateArtistInfoPageChunkItem.js
parent1fd4db340060e70ffcfb76405611069d785663c1 (diff)
content: gAIPOtherArtistLinks: use associatedContributions
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPageChunkItem.js')
-rw-r--r--src/content/dependencies/generateArtistInfoPageChunkItem.js4
1 files changed, 3 insertions, 1 deletions
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);
       }