Skip to content
Snippets Groups Projects
Commit c9591851 authored by David Hoksza's avatar David Hoksza
Browse files

fix multiple identical uniprotids in molart menu

parent 1bdd52fc
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!426Variants to molart
......@@ -265,7 +265,10 @@ function activateMolArtLink(coordinates, map) {
for (var i = 0; i < element.references.length; i++) {
var ref = element.references[i];
if (ref.constructor.name === 'Annotation' && ref.getType() === 'UNIPROT') {
uniprotIds.push(ref.getResource());
var uniprotId = ref.getResource()
if (uniprotIds.indexOf(uniprotId) < 0) {
uniprotIds.push(ref.getResource());
}
}
}
if (uniprotIds.length > 0) map.getTopMap().getContextMenu().getMolArt().activateInContextMenu(uniprotIds);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment