« 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/artwork.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things/artwork.js')
-rw-r--r--src/data/things/artwork.js21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/data/things/artwork.js b/src/data/things/artwork.js
index ae0e1ecf..4c5c55e7 100644
--- a/src/data/things/artwork.js
+++ b/src/data/things/artwork.js
@@ -153,16 +153,17 @@ export class Artwork extends Thing {
         mode: input.value('empty'),
       }),
 
-      {
-        dependencies: ['thing', 'artistContribsFromThingProperty'],
-        compute: (continuation, {thing, artistContribsFromThingProperty}) =>
-          (artistContribsFromThingProperty
-            ? continuation({
-                '#artistContribs':
-                  thing[artistContribsFromThingProperty],
-              })
-            : continuation.exit(null)),
-      },
+      exitWithoutDependency({
+        dependency: 'artistContribsFromThingProperty',
+        value: input.value([]),
+      }),
+
+      withPropertyFromObject({
+        object: 'thing',
+        property: 'artistContribsFromThingProperty',
+      }).outputs({
+        ['#value']: '#artistContribs',
+      }),
 
       withRecontextualizedContributionList({
         list: '#artistContribs',