« get me outta code hell

data: flash: make act use withFlashAct - 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:
author(quasar) nebula <qznebula@protonmail.com>2024-04-03 13:29:04 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-04-03 13:44:00 -0300
commit22f1548f60cc0e0239299ef1374092bccedc4088 (patch)
tree161c5ab3b29de70ab2fa29444bcafe5bdd2d0d1a /src/data/things
parent0792908781a1956cd44038498bbd68f2bfdb8396 (diff)
data: flash: make act use withFlashAct
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] = ({