Commit 76557457 authored by David Hoksza's avatar David Hoksza

improving deduplication results highlighting

parent ce035402
Pipeline #6008 passed with stages
in 1 minute and 39 seconds
......@@ -533,25 +533,27 @@ function suggest() {
return dehighlightAllBioentities("ICON").then(function() {
return fetchBioObjects(groupIds);
}).then( function (bioEntities) {
(function() {
return dehighlightAllBioentities(pred.bioEntity).then(function() {
if (rowChecked) {
const highlightDefs = bioEntities.map(be => {
return {
element: {
id: be.id,
modelId: minerva.project.data.getModels()[0].modelId,
type: "ALIAS"
},
type: "ICON"
}
});
return highlight(highlightDefs);
} else {
return Promise.resolve();
}
});
if (rowChecked) {
// return dehighlightAllBioentities(pred.bioEntity).then(function() {
//
const highlightDefs = bioEntities.map(be => {
return {
element: {
id: be.id,
modelId: minerva.project.data.getModels()[0].modelId,
type: "ALIAS"
},
type: "ICON"
}
});
return highlight(highlightDefs);
// });
} else {
return dehighlightAllBioentities(pred.bioEntity)
// return Promise.resolve();
}
})().then(function(){
return minerva.project.map.fitBounds({
modelId: minerva.project.data.getModels()[0].modelId,
......
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