revert debug

This commit is contained in:
dwelle 2023-08-10 13:27:23 +02:00
parent 6aa383bf58
commit 69d751ffe4

View File

@ -3864,11 +3864,11 @@ class App extends React.Component<AppProps, AppState> {
// Since we are reading from previous state which is not possible with
// automatic batching in React 18 hence using flush sync to synchronously
// update the state. Check https://github.com/excalidraw/excalidraw/pull/5508 for more details.
// flushSync(() => {
this.setState({
editingLinearElement,
flushSync(() => {
this.setState({
editingLinearElement,
});
});
// });
}
if (editingLinearElement?.lastUncommittedPoint != null) {
this.maybeSuggestBindingAtCursor(scenePointer);