Skip to content

Commit c5a8820

Browse files
fix(overmind): properly pass new nested chart property
1 parent c04ba81 commit c5a8820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function createNewStatePath(
9393

9494
// If we have more nested state, go grab the initial states
9595
if (stateTarget.chart) {
96-
return newStatePath.concat(getInitialState(stateTarget))
96+
return newStatePath.concat(getInitialState(stateTarget.chart))
9797
}
9898

9999
return newStatePath

0 commit comments

Comments
 (0)