Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
chore: remove extraneous variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sdlyy committed Jan 31, 2024
1 parent 46f1c00 commit 9b686d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/frontend/src/store/actions/onMouseMove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ export function onMouseMove(
: node,
)

const newState = updateNodePositions({
return updateNodePositions({
...state,
nodes,
})

return newState
}
case 'pan': {
const [x, y] = [event.clientX, event.clientY]
Expand Down

0 comments on commit 9b686d9

Please sign in to comment.