Skip to content

Commit 0c40c55

Browse files
author
taylorhakes
committed
Fixed bug in sweep
1 parent 53a8c74 commit 0c40c55

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)