fix: Locked tool + arrow

This commit is contained in:
Mark Tolmacs
2025-09-16 17:05:57 +02:00
parent f2f5168355
commit 32526c4d4a
2 changed files with 21 additions and 17 deletions

View File

@@ -3194,14 +3194,14 @@ class App extends React.Component<AppProps, AppState> {
this.setState({ editingTextElement: null });
}
if (
this.state.selectedLinearElement &&
!this.state.selectedElementIds[this.state.selectedLinearElement.elementId]
) {
// To make sure `selectedLinearElement` is in sync with `selectedElementIds`, however this shouldn't be needed once
// we have a single API to update `selectedElementIds`
this.setState({ selectedLinearElement: null });
}
// if (
// this.state.selectedLinearElement &&
// !this.state.selectedElementIds[this.state.selectedLinearElement.elementId]
// ) {
// // To make sure `selectedLinearElement` is in sync with `selectedElementIds`, however this shouldn't be needed once
// // we have a single API to update `selectedElementIds`
// this.setState({ selectedLinearElement: null });
// }
this.store.commit(elementsMap, this.state);