« get me outta code hell

data: Album.artTags: empty without cover artist contribs - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-13 14:29:45 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-13 14:29:45 -0400
commit4ae877bc6dcc89c3899b2e1c3d5febf9e28334d6 (patch)
treec46c92bee0eeed86e2fab5733c42a3932200ffe9 /src
parente0a84cf1b550a7f6d065a64cf4524fa408508bc5 (diff)
data: Album.artTags: empty without cover artist contribs
Diffstat (limited to 'src')
-rw-r--r--src/data/things/album.js17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index a95ba354..e48ad41a 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -113,11 +113,18 @@ export class Album extends Thing {
       data: 'groupData',
     }),
 
-    artTags: referenceList({
-      class: input.value(ArtTag),
-      find: input.value(find.artTag),
-      data: 'artTagData',
-    }),
+    artTags: [
+      exitWithoutContribs({
+        contribs: 'coverArtistContribs',
+        value: input.value([]),
+      }),
+
+      referenceList({
+        class: input.value(ArtTag),
+        find: input.value(find.artTag),
+        data: 'artTagData',
+      }),
+    ],
 
     // Update only