Преглед изворни кода

Fix undo with line editing (#1717)

fujimoto kyosuke пре 5 година
родитељ
комит
476c0e9f8a
1 измењених фајлова са 1 додато и 3 уклоњено
  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,