mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-23 14:39:58 +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 liftedState = state.states[id];
|
||||
let currentStateIndex = action.index;
|
||||
if (typeof currentStateIndex === 'undefined' && action.actionId) {
|
||||
if (typeof currentStateIndex === 'undefined' && action.actionId != null) {
|
||||
currentStateIndex = liftedState.stagedActionIds.indexOf(action.actionId);
|
||||
}
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue
Block a user