« get me outta code hell

data: withContributionArtist: depend on 'artist' prop by default - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/things/contribution/withContributionArtist.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-17 21:15:18 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:14 -0300
commit8dae3f05d0f54963bc08768970033062f5733ef2 (patch)
treec50c99f9590dac76806a95268d097bf54252a508 /src/data/composite/things/contribution/withContributionArtist.js
parent17987a50e7cbc03561bba87436ef5bbb15e98cee (diff)
data: withContributionArtist: depend on 'artist' prop by default
Diffstat (limited to 'src/data/composite/things/contribution/withContributionArtist.js')
-rw-r--r--src/data/composite/things/contribution/withContributionArtist.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/data/composite/things/contribution/withContributionArtist.js b/src/data/composite/things/contribution/withContributionArtist.js
index 9e588936..5a611c1a 100644
--- a/src/data/composite/things/contribution/withContributionArtist.js
+++ b/src/data/composite/things/contribution/withContributionArtist.js
@@ -5,10 +5,13 @@ import {withPropertyFromObject} from '#composite/data';
 import {withResolvedReference} from '#composite/wiki-data';
 
 export default templateCompositeFrom({
-  annotation: `withOwnContributionArtist`,
+  annotation: `withContributionArtist`,
 
   inputs: {
-    ref: input({type: 'string'}),
+    ref: input({
+      type: 'string',
+      defaultDependency: 'artist',
+    }),
   },
 
   outputs: ['#artist'],