diff options
Diffstat (limited to 'scripts/model/graph.js')
| -rw-r--r-- | scripts/model/graph.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/model/graph.js b/scripts/model/graph.js index b41c6bb6..33167552 100644 --- a/scripts/model/graph.js +++ b/scripts/model/graph.js @@ -273,12 +273,13 @@ function Graph(el) { return; } if (!found) { - var link = { + var id = id_generator(), + link = { source: sourceNode, target: targetNode, name: name, state: state, - id: id_generator(), + id: id, }; links.push(link); signal.signal(consts.APPLIED_GRAPH_DIFF, [{links: {add: [link]}}]); |
