From 1d0c6c75e93602054875727ea3febee8a531ff6f Mon Sep 17 00:00:00 2001 From: Josemi Date: Thu, 23 Nov 2023 18:52:38 +0100 Subject: [PATCH] wc: fix generating variant region in cellbase annotation summary #TASK-5285 --- .../variant/annotation/cellbase-variant-annotation-summary.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/webcomponents/variant/annotation/cellbase-variant-annotation-summary.js b/src/webcomponents/variant/annotation/cellbase-variant-annotation-summary.js index 4f8c909e23..80a6976426 100644 --- a/src/webcomponents/variant/annotation/cellbase-variant-annotation-summary.js +++ b/src/webcomponents/variant/annotation/cellbase-variant-annotation-summary.js @@ -191,11 +191,10 @@ export default class CellbaseVariantAnnotationSummary extends LitElement { } render() { - const variantRegion = this.variantAnnotation.chromosome + ":" + this.variantAnnotation.start + "-" + this.variantAnnotation.start; if (this.variantAnnotation === undefined || this.variantAnnotation === "" || this.proteinSubScore === undefined) { return; } - + const variantRegion = this.variantAnnotation.chromosome + ":" + this.variantAnnotation.start + "-" + this.variantAnnotation.start; const variantId = this.variantAnnotation.id ? this.variantAnnotation.id : `${this.variantAnnotation.chromosome}:${this.variantAnnotation.start}:${this.variantAnnotation.reference}:${this.variantAnnotation.alternate}`; return html`