Skip to content

Commit

Permalink
not displaying on mermaid a self loop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisbatyk committed Jan 7, 2025
1 parent 2cf22c3 commit 0b6274b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions network-monitor/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ export const get_peers_description_to_render = (
let change_type = peer.change_type;
let peer_target = peer.target;

if (peer_target == peer_id) {
continue;
}

if (typeof peer_target == "string") {
//peer_target = peer_target.split(" (@")[0].slice(-8);
peer_target = [peer_target];
Expand Down

0 comments on commit 0b6274b

Please sign in to comment.