From 532151b9398807e36c2fc83d5d5dd94f865f57f8 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Tue, 31 Jan 2023 16:07:05 +0100 Subject: [PATCH] Fix revive not restoring the last step --- src/utils/saveload.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/utils/saveload.ts b/src/utils/saveload.ts index 43a6ec0..f862901 100644 --- a/src/utils/saveload.ts +++ b/src/utils/saveload.ts @@ -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); }