Skip to content

Commit

Permalink
Merge pull request #1129 from OpenTreeOfLife/ignore-ambiguous-tip-labels
Browse files Browse the repository at this point in the history
Ignore tips when looking for ambiguous node labels
  • Loading branch information
jar398 authored Jun 1, 2017
2 parents 2eb8586 + a1671c3 commit 1897b23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions curator/static/js/study-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -8731,6 +8731,12 @@ function getAmbiguousLabelsInTree(tree) {
}

$.each( tree.node, function(i, node) {
if (node['^ot:isLeaf'] === true) {
/* We sometimes save a misspelled taxon name as `node[@label]` so
* we can show it later, but tip labels aren't really ambiguous here.
*/
return true; // skip to next node
}
if ('@label' in node) {
var nodeID = node['@id'];
labelData[ nodeID ] = node['@label'];
Expand Down

0 comments on commit 1897b23

Please sign in to comment.