« 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/things
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/thing.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/data/things/thing.js b/src/data/things/thing.js
index 19f00b3e..9d8b2ea2 100644
--- a/src/data/things/thing.js
+++ b/src/data/things/thing.js
@@ -286,12 +286,8 @@ export function resolvedReference({ref, data, find}) {
 // properly.)
 export function dynamicContribs(contribsByRefProperty) {
   return compositeFrom(`dynamicContribs`, [
-    withResolvedContribs({
-      from: contribsByRefProperty,
-      into: '#contribs',
-    }),
-
-    exposeDependency({dependency: '#contribs'}),
+    withResolvedContribs({from: contribsByRefProperty}),
+    exposeDependency({dependency: '#resolvedContribs'}),
   ]);
 }
 
@@ -368,7 +364,10 @@ export function commentatorArtists(){
 // providing (named by the second argument) the result. "Resolving"
 // means mapping the "who" reference of each contribution to an artist
 // object, and filtering out those whose "who" doesn't match any artist.
-export function withResolvedContribs({from, into}) {
+export function withResolvedContribs({
+  from,
+  into = '#resolvedContribs',
+}) {
   return compositeFrom(`withResolvedContribs`, [
     raiseWithoutDependency({
       dependency: from,