mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-02-18 04:20:45 +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:
|
case ActionTypes.SWEEP:
|
||||||
stagedActions = stagedActions.filter((_, i) => !skippedActions[i]);
|
stagedActions = stagedActions.filter((_, i) => !skippedActions[i]);
|
||||||
skippedActions = {};
|
skippedActions = {};
|
||||||
currentStateIndex = Math.max(currentStateIndex, stagedActions.length - 1);
|
currentStateIndex = Math.min(currentStateIndex, stagedActions.length - 1);
|
||||||
break;
|
break;
|
||||||
case ActionTypes.PERFORM_ACTION:
|
case ActionTypes.PERFORM_ACTION:
|
||||||
if (currentStateIndex === stagedActions.length - 1) {
|
if (currentStateIndex === stagedActions.length - 1) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user