From f518c1b705d41d029f04a67c4660ce2fee1268d3 Mon Sep 17 00:00:00 2001
From: Xiao Gui <xgui3783@gmail.com>
Date: Wed, 19 Apr 2023 13:34:06 +0200
Subject: [PATCH] bugfix: fix annotation space bug

---
 docs/releases/v2.10.1.md           | 1 +
 src/state/annotations/selectors.ts | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/releases/v2.10.1.md b/docs/releases/v2.10.1.md
index b922189ac..43b34eb46 100644
--- a/docs/releases/v2.10.1.md
+++ b/docs/releases/v2.10.1.md
@@ -4,6 +4,7 @@
 
 - fsaverage on change variant, showing multiple meshes
 - fsaverage erroneous URL encoding of selected region
+- some annotations no longe rwork properly
 
 ## Behind the scenes
 
diff --git a/src/state/annotations/selectors.ts b/src/state/annotations/selectors.ts
index 5504a6bb1..9de6923be 100644
--- a/src/state/annotations/selectors.ts
+++ b/src/state/annotations/selectors.ts
@@ -14,7 +14,7 @@ export const spaceFilteredAnnotations = createSelector(
   selectStore,
   atlasSelectionSelectors.selectStore,
   (annState, atlasSelState) => annState.annotations.filter(ann => {
-    const spaceId = atlasSelState.selectedTemplate['@id']
+    const spaceId = atlasSelState.selectedTemplate.id
     if (ann['openminds']) {
       return (ann as Annotation<'openminds'>).openminds.coordinateSpace['@id'] === spaceId
     }
-- 
GitLab