fix: multiple line editor bugs (#9760)

Co-authored-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Omar Brikaa
2025-07-24 10:11:04 +03:00
committed by GitHub
parent f38f381989
commit 416da62138
4 changed files with 37 additions and 29 deletions

View File

@@ -1040,10 +1040,12 @@ export class LinearElementEditor {
if (lastPoint === lastUncommittedPoint) {
LinearElementEditor.deletePoints(element, app, [points.length - 1]);
}
return {
...appState.editingLinearElement,
lastUncommittedPoint: null,
};
return appState.editingLinearElement.lastUncommittedPoint
? {
...appState.editingLinearElement,
lastUncommittedPoint: null,
}
: appState.editingLinearElement;
}
let newPoint: LocalPoint;