Commit fd6c00f8 authored by Michael Vrána's avatar Michael Vrána

Statemaker fast click and move race condition fix

parent 19b9efe3
Pipeline #80138 passed with stages
in 5 minutes and 37 seconds
......@@ -172,8 +172,6 @@ function StateContainer(props: Props) {
} else if (isMoving) {
// State is in drag mode
// Stop dragging and set position
setDragging(false)
setMoving(false)
batch(() => {
dispatch(setPositioningState(''))
dispatch(updateState(id, { position }))
......@@ -185,6 +183,9 @@ function StateContainer(props: Props) {
dispatch(setInput(data.name))
})
}
setDragging(false)
setMoving(false)
},
[
dispatch,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment