diff --git a/packages/block-editor/src/hooks/layout.js b/packages/block-editor/src/hooks/layout.js index 959ab77f136978..e6113484f8a2ce 100644 --- a/packages/block-editor/src/hooks/layout.js +++ b/packages/block-editor/src/hooks/layout.js @@ -436,7 +436,7 @@ export const withLayoutStyles = createHigherOrderComponent( ); function BlockWithChildLayoutStyles( { block: BlockListBlock, props } ) { - const { style: { layout = {} } = {} } = props.attributes; + const layout = props.attributes.style?.layout ?? {}; const { selfStretch, flexSize } = layout; const id = useInstanceId( BlockListBlock );