diff options
Diffstat (limited to 'scripts/model/graph.js')
| -rw-r--r-- | scripts/model/graph.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/model/graph.js b/scripts/model/graph.js index 3600d172..4b4b0069 100644 --- a/scripts/model/graph.js +++ b/scripts/model/graph.js @@ -274,10 +274,11 @@ function Graph(el) { } if (!found) { var link = { - "source": sourceNode, - "target": targetNode, - "name": name, - "state": state + source: sourceNode, + target: targetNode, + name: name, + state: state, + id: id_generator(), }; links.push(link); signal.signal(consts.APPLIED_GRAPH_DIFF, [{links: {add: [link]}}]); |
