Skip to content

Commit

Permalink
wc: fix generating variant region in cellbase annotation summary #TAS…
Browse files Browse the repository at this point in the history
…K-5285
  • Loading branch information
jmjuanes committed Nov 23, 2023
1 parent da7519a commit 1d0c6c7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 1d0c6c7

Please sign in to comment.