Skip to content

Commit

Permalink
35481 Check why molecular analysis run is not loading
Browse files Browse the repository at this point in the history
- Identified that the view page was not loading due to molecular-analysis-run having no molecular-analysis-run-item associated
- Normally, this wouldn't be possible through the UI as there is already a check that forces users to select Material Samples as run items
- Implemented a fix that will load the page even if there's no run items
  • Loading branch information
johnphan96 committed Dec 30, 2024
1 parent ed5b1bd commit 2c9a987
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -726,10 +726,15 @@ export function useMolecularAnalysisRunView({
}
return metagenomicsBatchItems;
}

const usageType = molecularAnalysisRunItems.filter(
(runItem) => runItem.usageType !== "quality-control"
)?.[0].usageType;
)?.[0]?.usageType;

if (!usageType) {
setLoading(false);
return;
}

setColumns(
getMolecularAnalysisRunColumns(
compareByStringAndNumber,
Expand Down

0 comments on commit 2c9a987

Please sign in to comment.