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

bugfix: selected parcellation obs

parent 1081b10d
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,8 @@ export class AtlasBanner implements OnDestroy, OnInit {
this.selectedParcellation$ = this.store.pipe(
select('viewerState'),
safeFilter('parcellationSelected'),
map(state => state.parcellationSelected)
map(state => state.parcellationSelected),
distinctUntilChanged((o, n) => o === n)
)
this.selectedRegions$ = merge(
......@@ -283,5 +284,9 @@ export class AtlasBanner implements OnDestroy, OnInit {
get toastDuration() {
return this.constantService.citationToastDuration
}
get isMobile(){
return this.constantService.mobile
}
}
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