Browse Source

Fix undo with line editing (#1717)

fujimoto kyosuke 5 năm trước cách đây
mục cha
commit
476c0e9f8a
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      src/element/linearElementEditor.ts

+ 1 - 3
src/element/linearElementEditor.ts

@@ -174,9 +174,7 @@ export class LinearElementEditor {
           ],
         });
       }
-      if (appState.editingLinearElement.lastUncommittedPoint !== null) {
-        history.resumeRecording();
-      }
+      history.resumeRecording();
       setState({
         editingLinearElement: {
           ...appState.editingLinearElement,