Skip to content

Commit

Permalink
Fixed AngleTool not responding to cancellation
Browse files Browse the repository at this point in the history
AngleTool will be broken after annotation cancellation, because it tries to get the annotationId of a non-existing annotation.

Fixed this issue by setting angleStartedNotYetCompleted to false upon cancellation.
  • Loading branch information
BardiaKh committed Dec 30, 2022
1 parent 0c2fedb commit 8d7f3c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/tools/src/tools/annotation/AngleTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ class AngleTool extends AnnotationTool {
}

this.editData = null;
this.angleStartedNotYetCompleted = false;
return annotation.annotationUID;
}
};
Expand Down

0 comments on commit 8d7f3c8

Please sign in to comment.