diff --git a/src/atlasComponents/userAnnotations/tools/point.ts b/src/atlasComponents/userAnnotations/tools/point.ts index cf243533175aa2918094241f13f90d085eba6f75..713c3c6cc4c6c315eb0ed478b4e33f04c37f5e18 100644 --- a/src/atlasComponents/userAnnotations/tools/point.ts +++ b/src/atlasComponents/userAnnotations/tools/point.ts @@ -154,7 +154,10 @@ export class ToolPoint extends AbsToolClass implements IAnnotationTools, OnDestr * @param id id of annotation */ removeAnnotation(id: string) { + const idx = this.managedAnnotations.findIndex(ann => id === ann.id) + this.managedAnnotations.splice(idx, 1) + this.managedAnnotations$.next(this.managedAnnotations) } onMouseMoveRenderPreview(pos: [number, number, number]) {