Skip to content

Commit

Permalink
Fix bug, where transcriptInfo is requested and not available
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-veit committed Sep 4, 2020
1 parent 7517063 commit 9b8b66c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "higlass-transcripts",
"version": "0.2.0",
"version": "0.2.1",
"description": "Gene transcripts track for HiGlass",
"private": false,
"author": "Alexander Veit",
Expand Down
4 changes: 4 additions & 0 deletions src/scripts/TranscriptsTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ const TranscritpsTrack = (HGC, ...args) => {
return;
};

if(!track.transcriptInfo[transcriptId]){
return;
}

let centerYOffset =
track.transcriptInfo[transcriptId].displayOrder *
(height + strandSpacing);
Expand Down

0 comments on commit 9b8b66c

Please sign in to comment.