From 476c0e9f8a281b08b65f482cf2f66b8909f5f288 Mon Sep 17 00:00:00 2001 From: fujimoto kyosuke <31386431+lusingander@users.noreply.github.com> Date: Sat, 6 Jun 2020 00:11:24 +0900 Subject: [PATCH] Fix undo with line editing (#1717) --- src/element/linearElementEditor.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/element/linearElementEditor.ts b/src/element/linearElementEditor.ts index 97e049ff..906389f1 100644 --- a/src/element/linearElementEditor.ts +++ b/src/element/linearElementEditor.ts @@ -174,9 +174,7 @@ export class LinearElementEditor { ], }); } - if (appState.editingLinearElement.lastUncommittedPoint !== null) { - history.resumeRecording(); - } + history.resumeRecording(); setState({ editingLinearElement: { ...appState.editingLinearElement,