mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-23 14:39:58 +03:00
Use indexOf
This commit is contained in:
parent
58636ea244
commit
5617ff180c
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user