mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-27 22:39:55 +00:00
Key for nodes
This commit is contained in:
parent
93bb5a4117
commit
732fcae48d
@ -63,7 +63,9 @@ export class NodesWidget implements Widget {
|
|||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
const node = view.selectAll<SVGGElement, any>('g.node')
|
const node = view.selectAll<SVGGElement, any>('g.node')
|
||||||
.data(nodes);
|
.data(nodes, (n: Node) => {
|
||||||
|
return n.node_id;
|
||||||
|
});
|
||||||
|
|
||||||
const node_enter = node.enter()
|
const node_enter = node.enter()
|
||||||
.append<SVGGElement>('g')
|
.append<SVGGElement>('g')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user