Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
redo(id?) {
if (isUndefined(id)) {
this.stateHistory.redo();
} else {
this.stateHistoryEntity.redo(id);
}
}
undo(id?) {
if (isUndefined(id)) {
this.stateHistory.undo();
} else {
this.stateHistoryEntity.undo(id);
}
}