From 58636ea244d8fc6750877e48a378feaabeafd49b Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 6 Jan 2022 23:05:31 -0500 Subject: [PATCH] Fix JUMP_TO_ACTION handling --- packages/redux-devtools-app/src/reducers/instances.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/redux-devtools-app/src/reducers/instances.ts b/packages/redux-devtools-app/src/reducers/instances.ts index 017e37cf..c2adf488 100644 --- a/packages/redux-devtools-app/src/reducers/instances.ts +++ b/packages/redux-devtools-app/src/reducers/instances.ts @@ -218,7 +218,9 @@ export function dispatchAction( const id = state.selected || state.current; const liftedState = state.states[id]; const currentStateIndex = - action.type === 'JUMP_TO_STATE' ? action.index : action.actionId; + action.type === 'JUMP_TO_STATE' + ? action.index + : liftedState.stagedActionIds[action.actionId]; return { ...state, states: {