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

minor bugfix guarding for uninstan nav state

parent 0a30fa8e
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ import { atlasSelection } from 'src/state';
import { actions } from 'src/state/atlasSelection';
import { VALUES } from "common/constants"
import { floatEquality } from "common/util"
import { map } from 'rxjs/operators';
import { filter, map } from 'rxjs/operators';
enum EnumClassicalView {
CORONAL="Coronal",
......@@ -32,6 +32,7 @@ export class SnapPerspectiveOrientationCmp implements OnDestroy, OnInit {
of(null),
this.store$.pipe(
select(atlasSelection.selectors.navigation),
filter(v => !!v),
map(({ perspectiveOrientation }) => {
if (
perspectiveOrientation.some(v => floatEquality( Math.abs (v), 1, VALUES.THRESHOLD))
......
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