Skip to content
Snippets Groups Projects
Unverified Commit f518c1b7 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: fix annotation space bug

parent 97e0aebd
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
- fsaverage on change variant, showing multiple meshes - fsaverage on change variant, showing multiple meshes
- fsaverage erroneous URL encoding of selected region - fsaverage erroneous URL encoding of selected region
- some annotations no longe rwork properly
## Behind the scenes ## Behind the scenes
......
...@@ -14,7 +14,7 @@ export const spaceFilteredAnnotations = createSelector( ...@@ -14,7 +14,7 @@ export const spaceFilteredAnnotations = createSelector(
selectStore, selectStore,
atlasSelectionSelectors.selectStore, atlasSelectionSelectors.selectStore,
(annState, atlasSelState) => annState.annotations.filter(ann => { (annState, atlasSelState) => annState.annotations.filter(ann => {
const spaceId = atlasSelState.selectedTemplate['@id'] const spaceId = atlasSelState.selectedTemplate.id
if (ann['openminds']) { if (ann['openminds']) {
return (ann as Annotation<'openminds'>).openminds.coordinateSpace['@id'] === spaceId return (ann as Annotation<'openminds'>).openminds.coordinateSpace['@id'] === spaceId
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment