Skip to content

Commit

Permalink
Merge pull request #772 from AlexsLemonade/dev
Browse files Browse the repository at this point in the history
Production Deploy
  • Loading branch information
davidsmejia authored Jun 20, 2024
2 parents d8c4b9a + 9bc51b1 commit 1f4ff6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/components/ProjectSamplesTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export const ProjectSamplesTable = ({
// We only want to show the applied donwload options.
// Also need some helpers for presentation.
const { modality, format, getFoundFile } = useDownloadOptionsContext()
const { metadataComputedFile } = useMetadataOnly(project.computed_files)
const { metadataComputedFile, isMetadataOnlyAvailable } = useMetadataOnly(
project.computed_files
)
const [loaded, setLoaded] = useState(false)
const [samples, setSamples] = useState(defaultSamples)
const [showDownloadOptions, setShowDownloadOptions] = useState(false)
Expand Down Expand Up @@ -242,7 +244,7 @@ export const ProjectSamplesTable = ({
</Box>
<Box>
<DownloadModal
disabled={hasFilter}
disabled={!isMetadataOnlyAvailable || hasFilter}
label="Download Sample Metadata"
icon={<DownloadIcon color="brand" />}
resource={project}
Expand Down

0 comments on commit 1f4ff6e

Please sign in to comment.