diff options
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 |
commit | 22f1548f60cc0e0239299ef1374092bccedc4088 (patch) | |
tree | 161c5ab3b29de70ab2fa29444bcafe5bdd2d0d1a /src/data/things | |
parent | 0792908781a1956cd44038498bbd68f2bfdb8396 (diff) |
data: flash: make act use withFlashAct
Diffstat (limited to 'src/data/things')
-rw-r--r-- | src/data/things/flash.js | 14 |
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] = ({ |