Skip to content

Commit

Permalink
Remove asset_id from transmitted data
Browse files Browse the repository at this point in the history
  • Loading branch information
waxlamp committed Nov 2, 2023
1 parent ef2d95f commit 350c561
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions web/src/views/FileBrowserView/FileBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -381,15 +381,13 @@ const itemsNotFound = computed(() => items.value && !items.value.length);
function serviceURL(endpoint: string, data: {
dandisetId: string,
dandisetVersion: string,
assetId: string,
assetUrl: string,
assetDandiUrl: string,
assetS3Url: string,
}) {
return endpoint
.replaceAll('$dandiset_id$', data.dandisetId)
.replaceAll('$dandiset_version$', data.dandisetVersion)
.replaceAll('$asset_id$', data.assetId)
.replaceAll('$asset_url$', data.assetUrl)
.replaceAll('$asset_dandi_url$', data.assetUrl)
.replaceAll('$asset_s3_url$', data.assetUrl);
Expand Down Expand Up @@ -420,7 +418,6 @@ function getExternalServices(path: AssetPath, info: {dandisetId: string, dandise
url: serviceURL(service.endpoint, {
dandisetId: info.dandisetId,
dandisetVersion: info.dandisetVersion,
assetId: path.asset?.asset_id || '',
assetUrl,
assetDandiUrl,
assetS3Url,
Expand Down

0 comments on commit 350c561

Please sign in to comment.