Skip to content

Commit

Permalink
Fix Protein Variant Definition Check Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bencap committed Nov 22, 2024
1 parent f437450 commit d2ad98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ScoreSetHeatmap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d2ad98d

Please sign in to comment.