Skip to content

Commit

Permalink
fix: VariationLandscapePlotly with empty clinvar info (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Feb 23, 2024
1 parent 0d9c814 commit 4f349ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/GeneClinvarCard/VariationLandscapePlotly.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ const clinvarData = computed<PlotlyDataPoint[]>(() => {
clinvarInfo = item.variants.sort((a: ClinvarRecord, b: ClinvarRecord) => a.start - b.start)
}
}
if (clinvarInfo.length === 0) {
return []
}
// Update plot boundaries
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
currentPlotBoundaries.value = {
Expand Down

0 comments on commit 4f349ce

Please sign in to comment.