Skip to content

Commit

Permalink
fix: fixing InterVar display issue caused by template issue (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Feb 6, 2024
1 parent f25548e commit 0a41b36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/src/components/CadaRanking/CadaRanking.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const geneRank = computed<GeneRank | null>(() => {
// Function to load the data.
const loadData = async () => {
await caseInfoStore.initialize()
await cadaPrioStore.loadData(caseInfoStore.caseInfo.hpoTerms.map((term) => term.termId))
if ((caseInfoStore.caseInfo.hpoTerms ?? []).length !== 0) {
await cadaPrioStore.loadData(caseInfoStore.caseInfo.hpoTerms.map((term) => term.termId))
}
}
// Load case store when mounted.
Expand Down

0 comments on commit 0a41b36

Please sign in to comment.