Skip to content

Commit

Permalink
Biosamplesplot ...
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Oct 24, 2023
1 parent c863e7e commit 866334d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SVGloaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function CallsetHistogram({ csid, datasetIds }) {
export function BiosamplePlot({ biosid, datasetIds, plotRegionLabels, plotChros}) {
const componentRef = useRef()
const { width } = useContainerDimensions(componentRef)
const url = `${SITE_DEFAULTS.API_PATH}services/sampleplots/${biosid}?datasetIds=${datasetIds}&plot_width=${width}&plotRegionLabels=${plotRegionLabels}&plotChros=${plotChros}&forceEmptyPlot=true`
const url = `${SITE_DEFAULTS.API_PATH}services/sampleplots/${biosid}?plotType=samplesplot&datasetIds=${datasetIds}&plot_width=${width}&plotRegionLabels=${plotRegionLabels}&plotChros=${plotChros}&forceEmptyPlot=true`
// width > 0 to make sure the component is mounted and avoid double fetch
const dataEffect = useExtendedSWR(width > 0 && url, svgFetcher)
return (
Expand Down

0 comments on commit 866334d

Please sign in to comment.