« 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-12 17:26:34 -0300
commit323c8df744ea58e52f107e4a85589e8e338998cd (patch)
treeb049b197e31b8251b0ab7d0f9f694708edba532c /src/data/things
parent06303dc8585add99110160a69c6d9c818a9b5ded (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'}),
     ],