From 57353a9bf09f86c3f32d4f8cfe270db052bf3f07 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Sun, 2 Oct 2022 13:28:20 +0200 Subject: [PATCH] Fix regression with children dimension and having less than two --- src/Components/SVG/Elements/DimensionLayer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/SVG/Elements/DimensionLayer.tsx b/src/Components/SVG/Elements/DimensionLayer.tsx index 881bea7..6c89138 100644 --- a/src/Components/SVG/Elements/DimensionLayer.tsx +++ b/src/Components/SVG/Elements/DimensionLayer.tsx @@ -96,7 +96,7 @@ function Dimensions({ root, scale }: IDimensionLayerProps): React.ReactNode[] { ); } - if (SHOW_CHILDREN_DIMENSIONS && container.properties.showChildrenDimensions.length > 0) { + if (SHOW_CHILDREN_DIMENSIONS && container.properties.showChildrenDimensions.length > 0 && container.children.length >= 2) { ActionByPosition( dimMapped, container.properties.showChildrenDimensions,