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

chore: reduce error

parent 8284c06d
No related branches found
No related tags found
No related merge requests found
......@@ -151,16 +151,16 @@ export class PerspectiveViewSlider implements OnDestroy {
switchMap(({ template }) =>
template
? this.sapi.getVoxelTemplateImage(template).pipe(
map(defaultImage => {
switchMap(defaultImage => {
if (defaultImage.length == 0) {
const errMsg = `template ${template.name} has no ng volume`
throw new Error(errMsg)
// template hs no ng volume, which is the case for threesurfer
return NEVER
}
const img = defaultImage[0]
return {
return of({
...img.info || {},
transform: img.transform
}
})
})
)
: NEVER),
......
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