From 6cbb057188836c929e4f4da0cd79272e3ba43baf Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Fri, 23 Feb 2024 12:19:05 +0100 Subject: [PATCH] fix: do not throw on missing gene ClinVar data (#145) --- src/stores/geneInfo/store.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/geneInfo/store.ts b/src/stores/geneInfo/store.ts index 7406ab6..3a126ac 100644 --- a/src/stores/geneInfo/store.ts +++ b/src/stores/geneInfo/store.ts @@ -70,7 +70,9 @@ export const useGeneInfoStore = defineStore('geneInfo', () => { try { geneClinvar.value = await annonarsClient.fetchGeneClinvarInfo(hgncIdQuery) } catch (e) { - throw new Error(`No gene clinvar data found: ${e}`) + // Query for gene ClinVar information failed, assuming no ClinVar information. + // TODO: differentiate 404 and others + geneClinvar.value = undefined } const vigunoClient = new VigunoClient()