mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 11:03:57 +03:00
Fixed bug in sweep
This commit is contained in:
parent
53a8c74341
commit
0c40c5592f
|
@ -129,7 +129,7 @@ function liftReducer(reducer, initialState) {
|
|||
case ActionTypes.SWEEP:
|
||||
stagedActions = stagedActions.filter((_, i) => !skippedActions[i]);
|
||||
skippedActions = {};
|
||||
currentStateIndex = Math.max(currentStateIndex, stagedActions.length - 1);
|
||||
currentStateIndex = Math.min(currentStateIndex, stagedActions.length - 1);
|
||||
break;
|
||||
case ActionTypes.PERFORM_ACTION:
|
||||
if (currentStateIndex === stagedActions.length - 1) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user