Skip to content

Commit a297a36

Browse files
committed
Merge pull request #26 from taylorhakes/sweep
Fixed bug in sweep
2 parents 7b63418 + 0c40c55 commit a297a36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/devTools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function liftReducer(reducer, initialState) {
129129
case ActionTypes.SWEEP:
130130
stagedActions = stagedActions.filter((_, i) => !skippedActions[i]);
131131
skippedActions = {};
132-
currentStateIndex = Math.max(currentStateIndex, stagedActions.length - 1);
132+
currentStateIndex = Math.min(currentStateIndex, stagedActions.length - 1);
133133
break;
134134
case ActionTypes.PERFORM_ACTION:
135135
if (currentStateIndex === stagedActions.length - 1) {

0 commit comments

Comments
 (0)