From 4b558ae15aba64af76f084e95cc670c697b25c74 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 6 Jan 2022 21:43:15 -0500 Subject: [PATCH] Fix bad null check --- 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 e516c549..bd3ff32c 100644 --- a/packages/redux-devtools-app/src/reducers/instances.ts +++ b/packages/redux-devtools-app/src/reducers/instances.ts @@ -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 {