« get me outta code hell

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:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/track.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 193ad891..db325a17 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -178,7 +178,10 @@ export class Track extends Thing {
         '#resolvedContribs': '#artistContribs',
       }),
 
-      exposeDependencyOrContinue({dependency: '#artistContribs'}),
+      exposeDependencyOrContinue({
+        dependency: '#artistContribs',
+        mode: input.value('empty'),
+      }),
 
       withPropertyFromAlbum({
         property: input.value('artistContribs'),
@@ -199,7 +202,9 @@ export class Track extends Thing {
     // typically varies by release and isn't defined by the musical qualities
     // of the track.
     coverArtistContribs: [
-      exitWithoutUniqueCoverArt(),
+      exitWithoutUniqueCoverArt({
+        value: input.value([]),
+      }),
 
       withResolvedContribs({
         from: input.updateValue({validate: isContributionList}),
@@ -207,7 +212,10 @@ export class Track extends Thing {
         '#resolvedContribs': '#coverArtistContribs',
       }),
 
-      exposeDependencyOrContinue({dependency: '#coverArtistContribs'}),
+      exposeDependencyOrContinue({
+        dependency: '#coverArtistContribs',
+        mode: input.value('empty'),
+      }),
 
       withPropertyFromAlbum({
         property: input.value('trackCoverArtistContribs'),