Fix revive not restoring the last step

This commit is contained in:
Eric NGUYEN 2023-01-31 16:07:05 +01:00 committed by Eric Nguyen
parent a7feebdcd1
commit 532151b939

View file

@ -12,9 +12,6 @@ import { ISymbolModel } from '../Interfaces/ISymbolModel';
export function Revive(editorState: IEditorState): void {
const history = editorState.history;
// restore last step
editorState.historyCurrentStep = history.length - 1;
// restore the parents and the selected container
ReviveHistory(history);
}