Skip to content

Commit 8b3807a

Browse files
fix(overmind): destructuring issue in safari with statechart
1 parent 6ccdf64 commit 8b3807a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/node_modules/overmind/src/config/statechart.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ export function statechart<C extends IConfiguration, Charts extends Statecharts
354354
payload,
355355
}
356356
}),
357-
filter(function canTransition(_, { canTransition }) {
358-
return canTransition
357+
filter(function canTransition(_, payload) {
358+
return payload.canTransition
359359
}),
360360
mutate(function runAction(context: any, { payload }) {
361361
const stateTarget = getTarget(

0 commit comments

Comments
 (0)