diff --git a/pkg/drawio/subnetsLayout.go b/pkg/drawio/subnetsLayout.go index 1b81d9c96..b8a8d5128 100644 --- a/pkg/drawio/subnetsLayout.go +++ b/pkg/drawio/subnetsLayout.go @@ -497,7 +497,9 @@ func (ly *subnetsLayout) calcZoneOrder() { } } } - zoneOrders = append(zoneOrders, zoneOrder) + if len(zoneOrders) > 0 { + zoneOrders = append(zoneOrders, zoneOrder) + } ly.setZonesCol(zoneOrders) }