()
| 14242 | }); |
| 14243 | } |
| 14244 | undo() { |
| 14245 | const historyIndex = this.state.historyIndex - 1; |
| 14246 | if (historyIndex < 0) return; |
| 14247 | const newState = this.replay(historyIndex); |
| 14248 | this.rebaseFilter = true; |
| 14249 | this.setState(Object.assign(Object.assign({}, newState), { |
| 14250 | historyIndex |
| 14251 | })); |
| 14252 | } |
| 14253 | redo(historyIndex = this.state.historyIndex + 1) { |
| 14254 | if (historyIndex >= this.state.historyItems.length) return; |
| 14255 | const newState = this.replay(historyIndex); |
no test coverage detected