Skip to content

Commit

Permalink
fix: Fix possible broken link to third stage of vcf-report (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxwiegand committed Dec 15, 2021
1 parent 5ca1954 commit 66299d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bcf/report/js/gene-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ vegaEmbed('#oncoprint', spec).then(function(result) {
result.view.addEventListener('click', function(event, item) {
if (item.datum.sample !== undefined && item.datum.alteration !== undefined) {
let loc = item.datum.dna_alt;
loc = loc.replace(".", "_").replace(">", "_").replace(":", "_");
loc = loc.replace(/\./g, "_").replace(/>/g, "_").replace(/:/g, "_");
window.location.href = '../details/' + item.datum.sample + '/' + loc + '.html';
}
});
Expand Down Expand Up @@ -73,7 +73,7 @@ window.addEventListener('resize', function(event){
result.view.addEventListener('click', function(event, item) {
if (item.datum.sample !== undefined && item.datum.alteration !== undefined) {
let loc = item.datum.dna_alt;
loc = loc.replace(".", "_").replace(">", "_").replace(":", "_");
loc = loc.replace(/\./g, "_").replace(/>/g, "_").replace(/:/g, "_");
window.location.href = '../details/' + item.datum.sample + '/' + loc + '.html';
}
});
Expand Down

0 comments on commit 66299d2

Please sign in to comment.