From c8f79e551a4f2d1052e0813ff63b432069d44b7b Mon Sep 17 00:00:00 2001 From: Xiao Gui <xgui3783@gmail.com> Date: Tue, 29 Jun 2021 13:50:24 +0200 Subject: [PATCH] bugfix: colormap bug chore: typing for switchmap waitfor --- src/viewerModule/nehuba/nehubaViewer/nehubaViewer.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/viewerModule/nehuba/nehubaViewer/nehubaViewer.component.ts b/src/viewerModule/nehuba/nehubaViewer/nehubaViewer.component.ts index bf63d48d5..8da75583b 100644 --- a/src/viewerModule/nehuba/nehubaViewer/nehubaViewer.component.ts +++ b/src/viewerModule/nehuba/nehubaViewer/nehubaViewer.component.ts @@ -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() -- GitLab