« get me outta code hell

data: Track.artTags: empty without unique cover art - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-13 14:29:25 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-13 14:29:25 -0400
commite0a84cf1b550a7f6d065a64cf4524fa408508bc5 (patch)
tree09ea5975efdaa52a223f9fd1ff71b528c6e58e2c /src/data
parent4f99ea91531b212f8ae223fd4c4ad56fe262785c (diff)
data: Track.artTags: empty without unique cover art
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/track.js16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index be3035cd..375dd81d 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -255,11 +255,17 @@ export class Track extends Thing {
       }),
     ],
 
-    artTags: referenceList({
-      class: input.value(ArtTag),
-      find: input.value(find.artTag),
-      data: 'artTagData',
-    }),
+    artTags: [
+      exitWithoutUniqueCoverArt({
+        value: input.value([]),
+      }),
+
+      referenceList({
+        class: input.value(ArtTag),
+        find: input.value(find.artTag),
+        data: 'artTagData',
+      }),
+    ],
 
     // Update only