« get me outta code hell

data, thumbs: Flash.coverArtwork - 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:
author(quasar) nebula <qznebula@protonmail.com>2025-04-10 15:25:14 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-10 16:02:44 -0300
commite05cdb8ffc1677ebc6eca3c14b144ea530015a4c (patch)
tree333414f23164eeba047ae7f4ebb7eb4240af25f7 /src/data/things/artwork.js
parentb9d1e8d935f7e3e833ccac1fa07bcdf196d7bdc8 (diff)
data, thumbs: Flash.coverArtwork
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',