Skip to content

Commit

Permalink
Update DatasetResultBox.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Nov 1, 2023
1 parent 97f439b commit 7a5bfcb
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions src/components/searchResults/DatasetResultBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,20 @@ export function DatasetResultBox({ data: responseSet, query }) {
let histoplotUrl
let visualizationLink
if (handoverById(HANDOVER_IDS.histoplot)) {
if (resultsCount <= MAX_HISTO_SAMPLES) {
histoplotUrl = handoverById(HANDOVER_IDS.histoplot).url
let visualizationAccessId = new URLSearchParams(
new URL(histoplotUrl).search
).get("accessid")
let visualizationFileId = new URLSearchParams(
new URL(histoplotUrl).search
).get("fileId")
let visualizationSkip = new URLSearchParams(
new URL(histoplotUrl).search
).get("skip")
let visualizationLimit = new URLSearchParams(
new URL(histoplotUrl).search
).get("limit")
visualizationLink = getVisualizationLink(id, visualizationAccessId, visualizationFileId, visualizationSkip, visualizationLimit, resultsCount)
}
histoplotUrl = handoverById(HANDOVER_IDS.histoplot).url
let visualizationAccessId = new URLSearchParams(
new URL(histoplotUrl).search
).get("accessid")
let visualizationFileId = new URLSearchParams(
new URL(histoplotUrl).search
).get("fileId")
let visualizationSkip = new URLSearchParams(
new URL(histoplotUrl).search
).get("skip")
let visualizationLimit = new URLSearchParams(
new URL(histoplotUrl).search
).get("limit")
visualizationLink = getVisualizationLink(id, visualizationAccessId, visualizationFileId, visualizationSkip, visualizationLimit, resultsCount)
}

// main / samples / variants
Expand Down

0 comments on commit 7a5bfcb

Please sign in to comment.