Skip to content

Commit

Permalink
wc: fix condition ct.geneName
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodielm committed Oct 24, 2023
1 parent 05c2ba0 commit dd33773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webcomponents/variant/variant-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit dd33773

Please sign in to comment.