« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-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