Fix selection bug

This commit is contained in:
Mark Tolmacs 2025-07-28 13:48:05 +02:00
parent 4eb62e40dd
commit a664b71430
No known key found for this signature in database

View File

@ -115,9 +115,11 @@ export const actionFinalize = register({
// TODO: #7348 in theory this gets recorded by the store, so the invisible elements could be restored by the undo/redo, which might be not what we would want // TODO: #7348 in theory this gets recorded by the store, so the invisible elements could be restored by the undo/redo, which might be not what we would want
newElements = newElements.filter((el) => el.id !== element!.id); newElements = newElements.filter((el) => el.id !== element!.id);
} }
return { return {
elements: newElements, elements: newElements,
appState: { appState: {
...appState,
selectedLinearElement: { selectedLinearElement: {
...linearElementEditor, ...linearElementEditor,
selectedPointsIndices: null, selectedPointsIndices: null,