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

bugfix: colormap bug

chore: typing for switchmap waitfor
parent 8a4b1d35
No related branches found
No related tags found
No related merge requests found
......@@ -282,6 +282,9 @@ export class NehubaViewerUnit implements OnInit, OnDestroy {
if (this.setColormap$) {
this.ondestroySubscriptions.push(
this.setColormap$.pipe(
switchMap(switchMapWaitFor({
condition: () => !!(this.nehubaViewer?.ngviewer)
})),
debounceTime(160),
).subscribe(v => {
const map = new Map()
......
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