Browse Source

Fix check for nodes not present in EdgesHandler (#2963)

gemini
wimrijnders 7 years ago
committed by yotamberk
parent
commit
420f8a3bbf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/network/modules/EdgesHandler.js

+ 2
- 2
lib/network/modules/EdgesHandler.js View File

@ -385,8 +385,8 @@ class EdgesHandler {
let nodeList = [];
if (this.body.edges[edgeId] !== undefined) {
let edge = this.body.edges[edgeId];
if (edge.fromId) {nodeList.push(edge.fromId);}
if (edge.toId) {nodeList.push(edge.toId);}
if (edge.fromId !== undefined) {nodeList.push(edge.fromId);}
if (edge.toId !== undefined) {nodeList.push(edge.toId);}
}
return nodeList;
}

Loading…
Cancel
Save