From 8fb7a67736ed7a9c733e731c4b6d8ce53ba29f85 Mon Sep 17 00:00:00 2001 From: David Mejia Date: Thu, 20 Jun 2024 16:37:34 -0400 Subject: [PATCH] fix for enabled download button when not there --- client/src/components/ProjectSamplesTable.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/components/ProjectSamplesTable.js b/client/src/components/ProjectSamplesTable.js index 19fe931b..9edfdce9 100644 --- a/client/src/components/ProjectSamplesTable.js +++ b/client/src/components/ProjectSamplesTable.js @@ -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) @@ -242,7 +244,7 @@ export const ProjectSamplesTable = ({ } resource={project}