Skip to content

Commit

Permalink
fix: fix lasso canceling by removing definition checking (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
seve authored Mar 25, 2024
1 parent 056704f commit 188c4de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/graph/setupLasso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ const Lasso = () => {
};

const handleCancel = () => {
if (!(lassoPath && closePath && lassoPolygon)) return;
if (!(lassoPath && lassoPolygon)) return;
lassoPath.remove();
closePath = closePath?.remove();
if (closePath) closePath = closePath?.remove();
lassoPath = null;
lassoPolygon = null;
closePath = null;
Expand Down

0 comments on commit 188c4de

Please sign in to comment.