We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6b3394 + b87ca04 commit 4aba93dCopy full SHA for 4aba93d
src/reducers/mainReducers.ts
@@ -192,7 +192,7 @@ export const undo = (state: ApplicationStateInt) => {
192
193
export const redo = (state: ApplicationStateInt) => {
194
//if the future history array is empty, return the current state
195
- if (!state.future) return { ...state };
+ if (!state.future || !state.future.length) return { ...state };
196
const stateCopy = cloneDeep(state);
197
const futureCopy = cloneDeep(state.future);
198
//grab the first element of the future history array and assign it to the new state
0 commit comments