« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/data/things/flash.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/data/things/flash.js b/src/data/things/flash.js
index 81de327..54259f9 100644
--- a/src/data/things/flash.js
+++ b/src/data/things/flash.js
@@ -105,16 +105,10 @@ export class Flash extends Thing {
 
     // Expose only
 
-    act: {
-      flags: {expose: true},
-
-      expose: {
-        dependencies: ['this', 'flashActData'],
-
-        compute: ({this: flash, flashActData}) =>
-          flashActData.find((act) => act.flashes.includes(flash)) ?? null,
-      },
-    },
+    act: [
+      withFlashAct(),
+      exposeDependency({dependency: '#flashAct'}),
+    ],
   });
 
   static [Thing.getSerializeDescriptors] = ({