Skip to content

Commit

Permalink
Display equipment id instead of diagram id (#403)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
  • Loading branch information
flo-dup authored Jun 16, 2022
1 parent a0b7ebc commit f1ded36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public List<NodeLabel> getNodeLabels(Node node, Direction direction) {
}

private Optional<String> getLabelOrNameOrId(Node node) {
return Optional.ofNullable(node.getLabel().orElse(layoutParameters.isUseName() ? node.getName() : node.getId()));
return Optional.ofNullable(node.getLabel().orElse(layoutParameters.isUseName() ? node.getName() : node.getEquipmentId()));
}

@Override
Expand Down

0 comments on commit f1ded36

Please sign in to comment.