Commit 1d2cd015 authored by David Hoksza's avatar David Hoksza
Browse files

Fix a bug when no reactions identified for given map

parent 65ffc754
Pipeline #9477 passed with stages
in 1 minute and 36 seconds
......@@ -400,7 +400,6 @@ function initDrugBioEntities(){
});
globals.adrDataMap = globals.adrData.filter(d => d[settings.drugColumnName] in globals.drugs2BioEntities);
console.log(' globals', globals);
}).then(function () {
return getBioEntities();
}).then(function () {
......@@ -417,11 +416,16 @@ function initDrugBioEntities(){
function highlightSelectedInTable(){
// $container.find(`td`).parent().removeClass('danger');
$adrTable.find('tbody tr').each(function () {
let rowId = $(this).data('index');
$adrTable.bootstrapTable('updateCell', {index: rowId, field: 'State', value: 1, reinit: false});
});
$adrTable.bootstrapTable('updateCell', {index: 0, field: 'State', value: 1}); //to trigger reinitialization
if (Object.keys(globals.adrDataMap).length > 0) {
$adrTable.find('tbody tr').each(function () {
let rowId = $(this).data('index');
$adrTable.bootstrapTable('updateCell', {index: rowId, field: 'State', value: 1, reinit: false});
});
$adrTable.bootstrapTable('updateCell', {index: 0, field: 'State', value: 1}); //to trigger reinitialization
}
if (selectedInMap){
let idModelId = idIdModelId(selectedInMap.getId(), selectedInMap.getModelId());
......
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