From 75768b35aa79beaa3cbcaa398c655515e93d0674 Mon Sep 17 00:00:00 2001 From: Xiao Gui <xgui3783@gmail.com> Date: Wed, 8 Jan 2020 17:53:12 +0100 Subject: [PATCH] bugfix: fix fetch end point --- src/ui/databrowserModule/databrowser.service.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ui/databrowserModule/databrowser.service.ts b/src/ui/databrowserModule/databrowser.service.ts index 264d36249..533d5c7d0 100644 --- a/src/ui/databrowserModule/databrowser.service.ts +++ b/src/ui/databrowserModule/databrowser.service.ts @@ -249,13 +249,8 @@ export class DatabrowserService implements OnDestroy { private lowLevelQuery(templateName: string, parcellationName: string) { const encodedTemplateName = encodeURIComponent(templateName) const encodedParcellationName = encodeURIComponent(parcellationName) - return Promise.all([ - fetch(`${this.constantService.backendUrl}datasets/templateName/${encodedTemplateName}`, this.constantService.getFetchOption()) - .then(res => res.json()), - fetch(`${this.constantService.backendUrl}datasets/parcellationName/${encodedParcellationName}`, this.constantService.getFetchOption()) - .then(res => res.json()), - ]) - .then(arr => [...arr[0], ...arr[1]]) + return fetch(`${this.constantService.backendUrl}datasets//templateNameParcellationName/${encodedTemplateName}/${encodedParcellationName}`, this.constantService.getFetchOption()) + .then(res => res.json()) /** * remove duplicates */ -- GitLab