Skip to content
Snippets Groups Projects
Commit 494bc307 authored by esikkala's avatar esikkala
Browse files

getAllResults: do not replace URI with NetworkAPI

parent a3ea6c42
No related branches found
No related tags found
No related merge requests found
......@@ -75,9 +75,6 @@ export const getAllResults = ({
facetID: null
}))
}
if (uri !== null) {
q = q.replace('<ID>', `<${uri}>`)
}
if (has(config, 'useNetworkAPI') && config.useNetworkAPI) {
return runNetworkQuery({
endpoint: endpoint.url,
......@@ -89,6 +86,9 @@ export const getAllResults = ({
limit
})
} else {
if (uri !== null) {
q = q.replace('<ID>', `<${uri}>`)
}
return runSelectQuery({
query: endpoint.prefixes + q,
endpoint: endpoint.url,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment