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

chore: add on destroy hook

parent 91038e32
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,10 @@ export class ThreeSurferGlueCmp implements IViewer<'threeSurfer'>, OnChanges, Af
})
}
this.onDestroyCb.push(
() => setViewerHandle(null)
)
if (this.roi$) {
const sub = this.roi$.pipe(
switchMap(switchMapWaitFor({
......
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