Skip to content

Commit

Permalink
Flex Layout: Fix visibility control of allowOrientation (WordPress#39532
Browse files Browse the repository at this point in the history
)
  • Loading branch information
andrewserong authored and jostnes committed Mar 23, 2022
1 parent 9ebd623 commit 6ec422b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/layouts/flex.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ export default {
inspectorControls: function FlexLayoutInspectorControls( {
layout = {},
onChange,
layoutBlockSupport = {},
} ) {
const { allowOrientation = true } = layout;
const { allowOrientation = true } = layoutBlockSupport;
return (
<>
<Flex>
Expand Down

0 comments on commit 6ec422b

Please sign in to comment.