diff --git a/src/viewerModule/nehuba/nehubaViewer/nehubaViewer.component.ts b/src/viewerModule/nehuba/nehubaViewer/nehubaViewer.component.ts index bf63d48d516ee607455f70beb4639910184fa00e..8da75583b69334cc2a49a060ed2a3751a95f860d 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()