mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-23 06:29:51 +03:00
Fix JUMP_TO_ACTION handling
This commit is contained in:
parent
93b7f71c8e
commit
58636ea244
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user