Skip to content

Commit 63cf960

Browse files
Update RXJS and vsce
1 parent c40c912 commit 63cf960

3 files changed

Lines changed: 637 additions & 113 deletions

File tree

apps/notebook/components/src/app/components/map/map.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { TileLayer } from '@deck.gl/geo-layers';
1212
import { BitmapLayer } from '@deck.gl/layers';
1313
import { IDLNotebookMap } from '@idl/types/notebooks';
1414
import copy from 'fast-copy';
15+
import { firstValueFrom } from 'rxjs';
1516

1617
import { VSCodeRendererMessenger } from '../../services/vscode-renderer-messenger.service';
1718
import { BaseRendererComponent } from '../base-renderer.component';
@@ -200,12 +201,12 @@ export class MapComponent
200201

201202
fetch: async (url) => {
202203
// get value as bloc
203-
const val = await this.http
204-
.get(url, {
204+
const val = await firstValueFrom(
205+
this.http.get(url, {
205206
withCredentials: false,
206207
responseType: 'blob',
207208
})
208-
.toPromise();
209+
);
209210

210211
// convert to data URI and display
211212
return URL.createObjectURL(val);

0 commit comments

Comments
 (0)