Fix regression with children dimension and having less than two

This commit is contained in:
Eric NGUYEN 2022-10-02 13:28:20 +02:00
parent badf6ebaf5
commit 57353a9bf0

View file

@ -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( ActionByPosition(
dimMapped, dimMapped,
container.properties.showChildrenDimensions, container.properties.showChildrenDimensions,