Skip to content

Commit

Permalink
Fixed incorrect webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoNekoru committed Jul 22, 2022
1 parent 8a48c24 commit 4a9c4ee
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/js/ideogram.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/ideogram.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/init/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function configureSingleChromosome(config, ideo) {
function configureOrganisms(config, ideo) {
ideo.organisms = Object.assign({}, organismMetadata);
if (config.taxid && config.organismMetadata) ideo.organisms[config.taxid] = config.organismMetadata
ideo.organismsWithBands = Object.assign({}, organismMetadata);
ideo.organismsWithBands = Object.assign({}, ideo.organisms);
}

function configureCallbacks(config, ideo) {
Expand Down
7 changes: 4 additions & 3 deletions src/js/services/organisms.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function setTaxidData(taxid, ideo) {
return fetchWithRetry(chromosomesUrl)
.then(response => {
return response.json().then(function(json) {
resolve(json.chrBands);
resolve(json);
});
})
.catch((errorMessage) => {
Expand All @@ -80,17 +80,18 @@ function setTaxidData(taxid, ideo) {
});

return promise2
.then(function(chrBands) {
.then(function(chrData) {
// Check if chromosome data exists locally.
// This is used for pre-processed centromere data,
// which is not accessible via EUtils. See get_chromosomes.py.
var chrBands = chrData.chrBands

var asmAndChrTaxidsArray = [''],
chromosomes = [],
seenChrs = {},
chr, maxLength, splitBand, length;

ideo.bandData[taxid] = chrBands;
ideo.bandData[chrData.taxid] = chrBands;

for (var i = 0; i < chrBands.length; i++) {
splitBand = chrBands[i].split(' ');
Expand Down

0 comments on commit 4a9c4ee

Please sign in to comment.