()
| 28 | } |
| 29 | |
| 30 | override async revert(): Promise<void> { |
| 31 | const history = this.engine.history('particle') as string[]; |
| 32 | if (history.length > 0) { |
| 33 | const last = history[history.length - 1]; |
| 34 | |
| 35 | const action = this.engine.prepareAction(last, { cycle: 'Application' }) as ActionInstance | null; |
| 36 | if (action !== null) { |
| 37 | await action.willApply(); |
| 38 | await action.apply(); |
| 39 | await action.didApply({ updateHistory: false, updateState: true }); |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | override async didRevert(): Promise<ActionRevertResult> { |
| 45 | return { advance: true, step: true }; |
nothing calls this directly
no test coverage detected