From 1692f8e8c61d7d3f47a65ca208a64ed7514cc287 Mon Sep 17 00:00:00 2001 From: Federico Ruggi <1081051+ruggi@users.noreply.github.com> Date: Thu, 25 Jul 2024 14:43:24 +0200 Subject: [PATCH] make sure template --- editor/src/core/model/element-metadata-utils.ts | 2 ++ 1 file changed, 2 insertions(+) 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) ) },