« get me outta code hell

data: withRecontextualizedContributionList - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-06 13:41:38 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:01 -0300
commita5a31d5bf669fcb579d07c069a97f8945b743407 (patch)
treecbdaa0cd001816e52429d535ebd6014caa7e8343 /src/data/things
parentcca401d4b00c187f069eef25336d2364fb8d448e (diff)
data: withRecontextualizedContributionList
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/track.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 65cc1b68..ce9f413c 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -18,7 +18,8 @@ import {
 } from '#yaml';
 
 import {withPropertyFromObject} from '#composite/data';
-import {withResolvedContribs} from '#composite/wiki-data';
+import {withRecontextualizedContributionList, withResolvedContribs}
+  from '#composite/wiki-data';
 
 import {
   exitWithoutDependency,
@@ -219,6 +220,10 @@ export class Track extends Thing {
         property: input.value('artistContribs'),
       }),
 
+      withRecontextualizedContributionList({
+        list: '#album.artistContribs',
+      }),
+
       exposeDependency({dependency: '#album.artistContribs'}),
     ],
 
@@ -254,6 +259,10 @@ export class Track extends Thing {
         property: input.value('trackCoverArtistContribs'),
       }),
 
+      withRecontextualizedContributionList({
+        list: '#album.trackCoverArtistContribs',
+      }),
+
       exposeDependency({dependency: '#album.trackCoverArtistContribs'}),
     ],