This commit is contained in:
Cale Newman 2015-08-12 13:58:11 +00:00
commit df98361eaa

View File

@ -136,8 +136,12 @@ function liftReducer(reducer, initialState) {
case ActionTypes.PERFORM_ACTION:
if (currentStateIndex === stagedActions.length - 1) {
currentStateIndex++;
}
stagedActions = [...stagedActions, liftedAction.action];
} else {
stagedActions = stagedActions.slice(0, currentStateIndex + 1).concat(liftedAction.action);
currentStateIndex = stagedActions.length - 1;
skippedActions = {};
}
break;
case ActionTypes.SET_MONITOR_STATE:
monitorState = liftedAction.monitorState;