Commit c9591851 authored by David Hoksza's avatar David Hoksza
Browse files

fix multiple identical uniprotids in molart menu

parent 1bdd52fc
......@@ -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);
......
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