Skip to content

Commit

Permalink
fix: do not add class for missing alleles
Browse files Browse the repository at this point in the history
  • Loading branch information
dennishendriksen committed Jun 22, 2020
1 parent 96e85cc commit 68657fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Allele.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
methods: {
getAlleleClasses(base: string): object {
const classes: object = {nuc: true}
// @ts-ignore
classes['nuc-' + base.toLocaleLowerCase()] = true
if(base !== '*') {
// @ts-ignore
classes['nuc-' + base.toLocaleLowerCase()] = true
}
return classes
}
}
Expand Down

0 comments on commit 68657fd

Please sign in to comment.