Fix bad null check

This commit is contained in:
Nathan Bierema 2022-01-06 21:43:15 -05:00
parent 56c84dcfeb
commit 4b558ae15a

View File

@ -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 {