Skip to content

Commit

Permalink
Merge pull request #1308 from FZJ-INM1-BDA/fix_annotationsSpcId
Browse files Browse the repository at this point in the history
bugfix: fix annotation space bug
  • Loading branch information
xgui3783 authored Apr 19, 2023
2 parents 97e0aeb + e167e9b commit 3944c78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/releases/v2.10.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/state/annotations/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type THandleCustomMouseEv = {
latLblIdxReg: TLatIdxReg
meshVisibility: {
label: string
visible: boolean,
visible: boolean
mesh: TThreeGeometry
}[]
}
Expand Down Expand Up @@ -170,7 +170,7 @@ export class ThreeSurferGlueCmp implements IViewer<'threeSurfer'>, AfterViewInit
map(v => {
const returnVal: {
label: string
visible: boolean,
visible: boolean
mesh: TThreeGeometry
}[] = []
for (const lat in v) {
Expand Down

0 comments on commit 3944c78

Please sign in to comment.