From 1ce4f7be6b725d1a05ca74b64751e4460f6eb72c Mon Sep 17 00:00:00 2001
From: Xiao Gui <xgui3783@gmail.com>
Date: Thu, 17 Jun 2021 15:45:07 +0200
Subject: [PATCH] fix empty function

---
 src/atlasComponents/userAnnotations/tools/point.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/atlasComponents/userAnnotations/tools/point.ts b/src/atlasComponents/userAnnotations/tools/point.ts
index cf2435331..713c3c6cc 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]) {
-- 
GitLab