mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-24 23:19:51 +03:00
Fix bad null check
This commit is contained in:
parent
56c84dcfeb
commit
4b558ae15a
|
@ -218,7 +218,7 @@ export function dispatchAction(
|
||||||
const id = state.selected || state.current;
|
const id = state.selected || state.current;
|
||||||
const liftedState = state.states[id];
|
const liftedState = state.states[id];
|
||||||
let currentStateIndex = action.index;
|
let currentStateIndex = action.index;
|
||||||
if (typeof currentStateIndex === 'undefined' && action.actionId) {
|
if (typeof currentStateIndex === 'undefined' && action.actionId != null) {
|
||||||
currentStateIndex = liftedState.stagedActionIds.indexOf(action.actionId);
|
currentStateIndex = liftedState.stagedActionIds.indexOf(action.actionId);
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user