« get me outta code hell

data, test: fix track contribs not inheriting properly - 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>2023-10-06 12:06:15 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-10-06 12:06:15 -0300
commitb37d81240307f3e38faaa781c3932feff53e9aac (patch)
tree7e0e2a16b5dbcfd47f25632a41d1bc286d2397eb /src/data
parentd21a899ec62d0298f298a9fbdd8b74e5bc44c681 (diff)
data, test: fix track contribs not inheriting properly
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'),