Skip to content

Commit

Permalink
Update SVGloaders.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Oct 27, 2023
1 parent 2f15ab0 commit 77cd0f8
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 @@ -73,7 +73,7 @@ export function SubsetHistogram({ id, datasetIds, plotRegionLabels, plotGeneSymb
export function CallsetHistogram({ csid, datasetIds }) {
const componentRef = useRef()
const { width } = useContainerDimensions(componentRef)
const url = `${SITE_DEFAULTS.API_PATH}services/sampleplots?analysisIds=${csid}&datasetIds=${datasetIds}&plot_width=${width}`
const url = `${SITE_DEFAULTS.API_PATH}services/sampleplots?plotType=samplesplot&analysisIds=${csid}&datasetIds=${datasetIds}&plot_width=${width}`
// 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 77cd0f8

Please sign in to comment.