diff --git a/src/atlasViewer/atlasViewer.constantService.service.ts b/src/atlasViewer/atlasViewer.constantService.service.ts index 88ccf6f51fcc49f3bd5371738d19187e38a80b11..2abfe5f1df743a32a6b55755c716ef3d4542ce70 100644 --- a/src/atlasViewer/atlasViewer.constantService.service.ts +++ b/src/atlasViewer/atlasViewer.constantService.service.ts @@ -32,7 +32,7 @@ export class AtlasViewerConstantsServices{ fetch(url), new Promise((_, reject) => setTimeout(() => { reject(`fetch did not resolve under ${this.TIMEOUT} ms`) - }, this.TIMEOUT)) + }, this.TIMEOUT)) as Promise<Response> ]) /* TODO to be replaced by @id: Landmark/UNIQUE_ID in KG in the future */ diff --git a/src/atlasViewer/atlasViewer.dataService.service.ts b/src/atlasViewer/atlasViewer.dataService.service.ts index b6bab52944cda297cb5897dab53f62942c29182f..34362e294027ba1555c12534e1595ea47871af35 100644 --- a/src/atlasViewer/atlasViewer.dataService.service.ts +++ b/src/atlasViewer/atlasViewer.dataService.service.ts @@ -35,13 +35,13 @@ export class AtlasViewerDataService implements OnDestroy{ ){ this.constantService.templateUrls.map(url => this.constantService.raceFetch(url) - .then((res: Response) => res.json()) + .then(res => res.json()) .then(json => new Promise((resolve, reject) => { if(json.nehubaConfig) resolve(json) else if(json.nehubaConfigURL) this.constantService.raceFetch(json.nehubaConfigURL) - .then((res: Response) => res.json()) + .then(res => res.json()) .then(json2 => resolve( Object.assign({}, json, { nehubaConfig: json2 }) ))