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

chore: guard against nullish navigation

parent a4fdc2b9
No related branches found
No related tags found
No related merge requests found
......@@ -328,7 +328,8 @@ export class ThreeSurferGlueCmp implements IViewer<'threeSurfer'>, AfterViewInit
* subscribe to main store and negotiate with relay to set camera
*/
const navSub = this.store$.pipe(
select(atlasSelection.selectors.navigation)
select(atlasSelection.selectors.navigation),
filter(v => !!v),
).subscribe(nav => {
const { perspectiveOrientation, perspectiveZoom } = nav
this.mainStoreCameraNav = {
......
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