From dbdcf19b6d0f2c041ac60570247f91cce0307727 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 1 May 2023 08:20:30 -0500 Subject: [PATCH] Fix actions not being constructible --- src/features/action.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/features/action.tsx b/src/features/action.tsx index a58a762..7d392bb 100644 --- a/src/features/action.tsx +++ b/src/features/action.tsx @@ -244,8 +244,9 @@ export function createAction( decorator.postConstruct?.(action); } - const decoratedProps = decorators.reduce((current, next) => - Object.assign(current, next.getGatheredProps?.(action)) + const decoratedProps = decorators.reduce( + (current, next) => Object.assign(current, next.getGatheredProps?.(action)), + {} ); action[GatherProps] = function (this: GenericAction) { const {