From dd33773ddbf5b1790073b5ef0eaf909044f3b4ae Mon Sep 17 00:00:00 2001 From: Rodiel Martinez <10471758+Rodielm@users.noreply.github.com> Date: Tue, 24 Oct 2023 12:32:04 +0200 Subject: [PATCH] wc: fix condition ct.geneName --- src/webcomponents/variant/variant-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webcomponents/variant/variant-utils.js b/src/webcomponents/variant/variant-utils.js index e2f5f0e432..e1b1071aef 100644 --- a/src/webcomponents/variant/variant-utils.js +++ b/src/webcomponents/variant/variant-utils.js @@ -158,7 +158,7 @@ export default class VariantUtils { for (let j = 0; j < v.annotation.consequenceTypes.length; j++) { const cT = v.annotation.consequenceTypes[j]; // gene - if (cT?.geneName !== "" && cT?.geneName !== undefined) { + if (typeof cT?.geneName === "string" && ct?.geneName !== "") { genes.add(cT.geneName); }