Skip to content

Commit 7957c74

Browse files
authored
Use node_id in gene-tree node ZMenu root status check (#1113)
1 parent 4e81679 commit 7957c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/EnsEMBL/Web/ZMenu/ComparaTreeNode.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ sub content {
5858
my %collapsed_ids = map { $_ => 1 } grep /\d/, split ',', $hub->param('collapse');
5959
my $leaf_count = scalar @{$node->get_all_leaves};
6060
my $is_leaf = $node->is_leaf;
61-
my $is_root = ($node->root eq $node);
61+
my $is_root = ($node->root->node_id == $node->node_id);
6262
my $is_supertree = ($node->tree->tree_type eq 'supertree');
6363
my $parent_distance = $node->distance_to_parent || 0;
6464

0 commit comments

Comments
 (0)