diff --git a/editor/src/core/model/element-metadata-utils.ts b/editor/src/core/model/element-metadata-utils.ts index 3a538c3950f8..b34df018732d 100644 --- a/editor/src/core/model/element-metadata-utils.ts +++ b/editor/src/core/model/element-metadata-utils.ts @@ -378,6 +378,8 @@ export const MetadataUtils = { isRight(parent.element) && isJSXElement(parent.element.value) && parent.element.value.children.length > 0 && + parent.specialSizeMeasurements.containerGridProperties.gridTemplateColumns != null && + parent.specialSizeMeasurements.containerGridProperties.gridTemplateRows != null && MetadataUtils.isGridLayoutedContainer(parent) ) },