diff --git a/src/utils/getSpacedChildren.tsx b/src/utils/getSpacedChildren.tsx index 6bfc37d40..40edab648 100644 --- a/src/utils/getSpacedChildren.tsx +++ b/src/utils/getSpacedChildren.tsx @@ -75,7 +75,8 @@ const getSpacedChildren = ( {child} {disableCSSMediaQueries ? ( - index < childrenArray.length - 1 && + index < childrenArray.length - 1 && + space !== undefined && ) : ( <> )}