From 1312317f1288a1b4d2f2a5c2d00db99bd1d892a1 Mon Sep 17 00:00:00 2001 From: Adam Berger Date: Wed, 13 Sep 2023 17:18:25 -0400 Subject: [PATCH] fix: fix initial state handling from xstate --- src/transformers/xstate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/xstate.ts b/src/transformers/xstate.ts index d4d708c..3f55dcd 100644 --- a/src/transformers/xstate.ts +++ b/src/transformers/xstate.ts @@ -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: [],