File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
projects/angular-redux2/undo/src/components Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export class NgUndoStateActions {
80
80
const { state, undoState } = this . getStates ( currentState ) ;
81
81
82
82
if ( undoState . past . length === 0 ) {
83
- return state ;
83
+ return currentState ;
84
84
}
85
85
86
86
const pastSnapshot = undoState . past . pop ( ) ;
@@ -102,7 +102,7 @@ export class NgUndoStateActions {
102
102
const { state, undoState } = this . getStates ( currentState ) ;
103
103
104
104
if ( undoState . future . length === 0 ) {
105
- return state ;
105
+ return currentState ;
106
106
}
107
107
108
108
const futureSnapshot = undoState . future . shift ( ) ;
@@ -160,7 +160,7 @@ export class NgUndoStateActions {
160
160
const { state, undoState } = this . getStates ( currentState ) ;
161
161
162
162
if ( index < 0 || index >= undoState . future . length ) {
163
- return state ;
163
+ return currentState ;
164
164
}
165
165
166
166
const snapshot = get ( state , this . path ) ;
@@ -186,7 +186,7 @@ export class NgUndoStateActions {
186
186
const { state, undoState } = this . getStates ( currentState ) ;
187
187
188
188
if ( index < 0 || index >= undoState . past . length ) {
189
- return state ;
189
+ return currentState ;
190
190
}
191
191
192
192
const snapshot = get ( state , this . path ) ;
You can’t perform that action at this time.
0 commit comments