mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-29 13:34:20 +00:00
Make sure we have correct layer
This commit is contained in:
parent
e23e920278
commit
ef337d6a19
@ -11,7 +11,9 @@ export class LayersWidget implements Widget {
|
|||||||
|
|
||||||
const layers_selection = view
|
const layers_selection = view
|
||||||
.selectAll<SVGGElement, Layer>('g.layer')
|
.selectAll<SVGGElement, Layer>('g.layer')
|
||||||
.data(layers);
|
.data(layers, (layer: Layer) => {
|
||||||
|
return layer.index.toString();
|
||||||
|
});
|
||||||
|
|
||||||
const layers_enter = layers_selection
|
const layers_enter = layers_selection
|
||||||
.enter()
|
.enter()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user