From d2ad98dab54b958a7e05140660aedafe3fe2f9e7 Mon Sep 17 00:00:00 2001 From: Ben Capodanno Date: Fri, 22 Nov 2024 15:05:18 -0800 Subject: [PATCH] Fix Protein Variant Definition Check Logic --- src/components/ScoreSetHeatmap.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ScoreSetHeatmap.vue b/src/components/ScoreSetHeatmap.vue index be9b2f8..571ff32 100644 --- a/src/components/ScoreSetHeatmap.vue +++ b/src/components/ScoreSetHeatmap.vue @@ -92,7 +92,7 @@ export default { }, isNucleotideHeatmap: function() { const targetCategory = _.get(this.scoreSet, 'targetGenes[0].category') - const proteinVariantsAreDefined = this.scores.every((elem) => elem.hgvs_pro !== null) + const proteinVariantsAreDefined = this.scores.every((elem) => !isNaN(elem.hgvs_pro)) return !proteinVariantsAreDefined && (targetCategory === 'other_noncoding' || targetCategory == "regulatory") }, heatmapRows: function() {