Skip to content

Commit

Permalink
fix: fix initial state handling from xstate
Browse files Browse the repository at this point in the history
  • Loading branch information
abrgr committed Sep 13, 2023
1 parent cfe4577 commit 1312317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/xstate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const definitionToFlowState = (
parent,
name: xstate.key,
type: xstate.type,
initialState: xstate.initial as StateId,
initialState: [xstate.id, xstate.initial].join(".") as StateId,
transitions: xstate.transitions.map((transition) => ({
actions: transition.actions.map((action) => action.type as ActionId),
assertions: [],
Expand Down

0 comments on commit 1312317

Please sign in to comment.