Use indexOf

This commit is contained in:
Nathan Bierema 2022-01-06 23:07:57 -05:00
parent 58636ea244
commit 5617ff180c

View File

@ -220,7 +220,7 @@ export function dispatchAction(
const currentStateIndex = const currentStateIndex =
action.type === 'JUMP_TO_STATE' action.type === 'JUMP_TO_STATE'
? action.index ? action.index
: liftedState.stagedActionIds[action.actionId]; : liftedState.stagedActionIds.indexOf(action.actionId);
return { return {
...state, ...state,
states: { states: {