Skip to content

Commit

Permalink
add comment for isRedundantZoneWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
znamenskii-ilia committed Jul 11, 2024
1 parent a6d2c7c commit a9f47e9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit a9f47e9

Please sign in to comment.