From 9b88482625fa19e1541a19d2ce06800fa6bc37c6 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Fri, 3 Nov 2023 14:14:22 +0400 Subject: [PATCH] Feedback --- packages/block-editor/src/hooks/layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/hooks/layout.js b/packages/block-editor/src/hooks/layout.js index 959ab77f13697..e6113484f8a2c 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 );