Skip to content

Commit

Permalink
refactor(nodes-selection): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
moklick committed May 22, 2022
1 parent a88e53d commit 3cf32cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/NodesSelection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function NodesSelection({
}: NodesSelectionProps) {
const store = useStoreApi();
const { transform, userSelectionActive } = useStore(selector, shallow);
const { width, height, x, y } = useStore(bboxSelector, shallow);
const { width, height, x: left, y: top } = useStore(bboxSelector, shallow);
const nodeRef = useRef(null);

// it's important that these handlers are memoized to avoid multiple creation of d3 drag handler
Expand Down Expand Up @@ -83,8 +83,8 @@ function NodesSelection({
style={{
width,
height,
top: y,
left: x,
top,
left,
}}
/>
</div>
Expand Down

0 comments on commit 3cf32cc

Please sign in to comment.