diff --git a/package-lock.json b/package-lock.json index 16f7f5d..906e90a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "higlass-transcripts", - "version": "0.2.0", + "version": "0.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 13c6656..a8d1ede 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/scripts/TranscriptsTrack.js b/src/scripts/TranscriptsTrack.js index b06f481..9c2e2b7 100644 --- a/src/scripts/TranscriptsTrack.js +++ b/src/scripts/TranscriptsTrack.js @@ -478,6 +478,10 @@ const TranscritpsTrack = (HGC, ...args) => { return; }; + if(!track.transcriptInfo[transcriptId]){ + return; + } + let centerYOffset = track.transcriptInfo[transcriptId].displayOrder * (height + strandSpacing);