From 22f1548f60cc0e0239299ef1374092bccedc4088 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 3 Apr 2024 13:29:04 -0300 Subject: data: flash: make act use withFlashAct --- src/data/things/flash.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/data') 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] = ({ -- cgit 1.3.0-6-gf8a5