Commit fedd9d57 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

invalid gene mapping caused problems in frontend

parent dfbebb2e
Pipeline #47662 passed with stage
in 21 minutes and 23 seconds
minerva (16.0.0~beta.3) stable; urgency=medium
* Bug fix: speed of opening map is improved (#1558)
* Bug fix: typo (#1555)
* Bug fix: gene mapping with empty url caused issues when opening info window
(#1557)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 27 Sep 2021 08:00:00 +0200
......
......@@ -297,7 +297,7 @@ AliasInfoWindow.prototype.createChartDiv = function (params) {
result.appendChild(rows[i][j]);
}
}
result.appendChild( document.createElement("br"));
result.appendChild(document.createElement("br"));
return result;
});
};
......@@ -457,13 +457,17 @@ AliasInfoWindow.prototype.createGenomicDiv = function (params) {
});
for (var k = 0; k < genome.getGeneMappings().length; k++) {
var mapping = genome.getGeneMappings()[k];
pileupSource.push({
viz: pileup.viz.genes(),
data: pileup.formats.bigBed({
url: mapping.getUrl()
}),
name: 'Genes ' + mapping.getName()
});
if (mapping.getUrl() === null || mapping.getUrl() === undefined) {
logger.warn("No url for gene mapping " + mapping.getName());
} else {
pileupSource.push({
viz: pileup.viz.genes(),
data: pileup.formats.bigBed({
url: mapping.getUrl()
}),
name: 'Genes ' + mapping.getName()
});
}
}
}
for (i = 0; i < overlaysData.length; i++) {
......@@ -556,7 +560,7 @@ AliasInfoWindow.prototype.createGenomicDiv = function (params) {
zoomOut.appendTo(zoomControls);
}
result.appendChild( document.createElement("br"));
result.appendChild(document.createElement("br"));
return result;
} else {
return document.createElement("div");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment