Skip to content

Commit

Permalink
fix annotation lock example (#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
minimal-scouser authored Feb 21, 2025
1 parent cfe9339 commit d7e809e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,8 @@ addButtonToToolbar({

if (annotationUIDs && annotationUIDs.length) {
const annotationUID = annotationUIDs[0];
const annotation =
defaultFrameOfReferenceSpecificAnnotationManager.getAnnotation(
annotationUID
);

locking.setAnnotationLocked(annotation, true);
locking.setAnnotationLocked(annotationUID, true);
selection.deselectAnnotation();

// Render the image to see it was selected
Expand Down

0 comments on commit d7e809e

Please sign in to comment.