Skip to content
Snippets Groups Projects
Commit 75768b35 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: fix fetch end point

parent f6a9cf0f
No related branches found
No related tags found
No related merge requests found
......@@ -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
*/
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment