Skip to content

Commit

Permalink
fix services link for new path interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Oct 10, 2024
1 parent 26a216c commit 3b1b66c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hooks/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ export function getDataItemUrl(id, entity, datasetIds) {
return `${SITE_DEFAULTS.API_PATH}beacon/${entity}/${id}/?datasetIds=${datasetIds}`
}

export function useServiceItemDelivery(id, entity, datasetIds) {
return useProgenetixApi(getServiceItemUrl(id, entity, datasetIds))
export function useServiceItemDelivery(id, service, datasetIds) {
return useProgenetixApi(getServiceItemUrl(id, service, datasetIds))
}

export function getServiceItemUrl(id, collection, datasetIds) {
return `${SITE_DEFAULTS.API_PATH}services/${collection}?id=${id}&datasetIds=${datasetIds}`
export function getServiceItemUrl(id, service, datasetIds) {
return `${SITE_DEFAULTS.API_PATH}services/${service}/${id}/?datasetIds=${datasetIds}`
}

export function NoResultsHelp(id, entity) {
Expand Down

0 comments on commit 3b1b66c

Please sign in to comment.