diff --git a/app/client/src/layoutSystems/anvil/utils/layouts/update/zoneUtils.ts b/app/client/src/layoutSystems/anvil/utils/layouts/update/zoneUtils.ts index 765db08ce320..e920e5d2cbc4 100644 --- a/app/client/src/layoutSystems/anvil/utils/layouts/update/zoneUtils.ts +++ b/app/client/src/layoutSystems/anvil/utils/layouts/update/zoneUtils.ts @@ -257,5 +257,6 @@ export const isRedundantZoneWidget = ( ): boolean => isZoneWidget(widget) && isEmptyWidget(widget) && + // Check that the zone is the only child of the parent section. widgetChildren(parentSection).length === 1 && !hasWidgetJsPropertiesEnabled(widget);