Restore binding

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs 2025-04-29 18:24:59 +02:00
parent 14bd9d3829
commit be69271fcd
No known key found for this signature in database
2 changed files with 7 additions and 7 deletions

View file

@ -123,7 +123,7 @@ export const actionFinalize = register({
}
}
if (isInvisiblySmallElement(element)) {
if (element && isInvisiblySmallElement(element)) {
// 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);
}

View file

@ -9023,12 +9023,12 @@ class App extends React.Component<AppProps, AppState> {
const element = this.scene.getElement(linearElementEditor.elementId);
if (isBindingElement(element)) {
this.actionManager.executeAction(actionFinalize);
// bindOrUnbindLinearElement(
// element,
// startBindingElement,
// endBindingElement,
// this.scene,
// );
bindOrUnbindLinearElement(
element,
startBindingElement,
endBindingElement,
this.scene,
);
}
if (linearElementEditor !== this.state.selectedLinearElement) {