« 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/flash.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/data/things/flash.js b/src/data/things/flash.js
index 81de3272..54259f95 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] = ({