From 5617ff180c30d3ec01fb92bd28e63c5e4d7fbadc Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 6 Jan 2022 23:07:57 -0500 Subject: [PATCH] Use indexOf --- packages/redux-devtools-app/src/reducers/instances.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/redux-devtools-app/src/reducers/instances.ts b/packages/redux-devtools-app/src/reducers/instances.ts index c2adf488..521e1928 100644 --- a/packages/redux-devtools-app/src/reducers/instances.ts +++ b/packages/redux-devtools-app/src/reducers/instances.ts @@ -220,7 +220,7 @@ export function dispatchAction( const currentStateIndex = action.type === 'JUMP_TO_STATE' ? action.index - : liftedState.stagedActionIds[action.actionId]; + : liftedState.stagedActionIds.indexOf(action.actionId); return { ...state, states: {