From a4b18903c08cc5234e7916bee6148e8b83a31808 Mon Sep 17 00:00:00 2001 From: haim-kermany Date: Sun, 7 Jan 2024 17:17:46 +0200 Subject: [PATCH] fix for empty zone order --- pkg/drawio/subnetsLayout.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }