From c5b4a0b7dbf396f04910054b0ff9ef4d7e1acc80 Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Thu, 17 Mar 2022 18:00:40 +1100 Subject: [PATCH] Flex Layout: Fix visibility control of allowOrientation --- packages/block-editor/src/layouts/flex.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/layouts/flex.js b/packages/block-editor/src/layouts/flex.js index 092da1e036a10..b308875abb4a0 100644 --- a/packages/block-editor/src/layouts/flex.js +++ b/packages/block-editor/src/layouts/flex.js @@ -42,8 +42,9 @@ export default { inspectorControls: function FlexLayoutInspectorControls( { layout = {}, onChange, + layoutBlockSupport = {}, } ) { - const { allowOrientation = true } = layout; + const { allowOrientation = true } = layoutBlockSupport; return ( <>