event actions into a reassignment

This commit is contained in:
Khaleel Al-Adhami 2024-10-01 16:42:35 -07:00
parent e8380383a9
commit 6a5d6a44fb

View File

@ -683,9 +683,9 @@ export const useEventLoop = (
args = [args]; args = [args];
} }
const event_actions = events.reduce( event_actions = events.reduce(
(acc, e) => ({ ...acc, ...e.event_actions }), (acc, e) => ({ ...acc, ...e.event_actions }),
event_actions event_actions ?? {}
); );
const _e = args.filter((o) => o?.preventDefault !== undefined)[0]; const _e = args.filter((o) => o?.preventDefault !== undefined)[0];