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

bugfix: atlas ordering

parent f03ceaaf
No related branches found
No related tags found
No related merge requests found
......@@ -3,3 +3,4 @@
## Bugfixes
- fix template/parcellation selector vertical scroll on small devices
- fix atlas order (human -> rat -> mouse)
......@@ -446,7 +446,7 @@ Raise/track issues at github repo: <a target = "_blank" href = "${this.repoUrl}"
}),
catchError((err, obs) => of([])),
tap((arr: any[]) => this.totalAtlasesLength = arr.length),
scan((acc, curr) => acc.concat(curr).sort((a, b) => (a.order || 1001) - (b.order || 1000)), []),
scan((acc, curr) => acc.concat(curr).sort((a, b) => (a.order || 0) - (b.order || 0)), []),
shareReplay(1)
)
......
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