« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateCoverArtworkOriginDetails.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/dependencies/generateCoverArtworkOriginDetails.js b/src/content/dependencies/generateCoverArtworkOriginDetails.js
index 3366a22e..452063cd 100644
--- a/src/content/dependencies/generateCoverArtworkOriginDetails.js
+++ b/src/content/dependencies/generateCoverArtworkOriginDetails.js
@@ -14,8 +14,8 @@ export default {
     artworkThingType:
       artwork.thing.constructor[Thing.referenceType],
 
-    mainArtworkArtistContribs:
-      (!artwork.isMainArtwork && artwork.mainArtwork
+    attachedArtistContribs:
+      (!artwork.isMainArtwork && artwork.mainArtwork && artwork.attachAbove
         ? artwork.mainArtwork.artistContribs
         : null)
   }),
@@ -24,7 +24,7 @@ export default {
     credit:
       relation('generateArtistCredit',
         artwork.artistContribs,
-        query.mainArtworkArtistContribs ?? []),
+        query.attachedArtistContribs ?? []),
 
     source:
       relation('transformContent', artwork.source),