From db4b785d353b63e1709fa8f10c2f64027f9456fa Mon Sep 17 00:00:00 2001 From: haim-kermany Date: Sun, 7 Jan 2024 18:08:47 +0200 Subject: [PATCH] fix for empty zone order --- pkg/drawio/subnetsLayout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/drawio/subnetsLayout.go b/pkg/drawio/subnetsLayout.go index b8a8d5128..cdecfd9cf 100644 --- a/pkg/drawio/subnetsLayout.go +++ b/pkg/drawio/subnetsLayout.go @@ -497,7 +497,7 @@ func (ly *subnetsLayout) calcZoneOrder() { } } } - if len(zoneOrders) > 0 { + if len(zoneOrder) > 0 { zoneOrders = append(zoneOrders, zoneOrder) } ly.setZonesCol(zoneOrders)