mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-22 00:21:31 +00:00
Fix actions not being constructible
This commit is contained in:
parent
5dabc5826c
commit
186fb4468b
1 changed files with 3 additions and 2 deletions
|
@ -244,8 +244,9 @@ export function createAction<T extends ActionOptions>(
|
|||
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 {
|
||||
|
|
Loading…
Reference in a new issue