Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Feb 15, 2023
1 parent 4fdbd9f commit 49966b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function useHasChildLayout( settings ) {
type: parentLayoutType = 'default',
default: { type: defaultParentLayoutType = 'default' } = {},
allowSizingOnChildren = false,
} = settings?.parentLayout;
} = settings?.parentLayout ?? {};

const support =
( defaultParentLayoutType === 'flex' || parentLayoutType === 'flex' ) &&
Expand Down Expand Up @@ -328,7 +328,7 @@ export default function DimensionsPanel( {
// Child Layout
const showChildLayoutControl = useHasChildLayout( settings );
const childLayout = inheritedValue?.layout;
const { orientation = 'horizontal' } = settings?.parentLayout;
const { orientation = 'horizontal' } = settings?.parentLayout ?? {};
const childLayoutOrientationLabel =
orientation === 'horizontal' ? __( 'Width' ) : __( 'Height' );
const setChildLayout = ( newChildLayout ) => {
Expand Down

0 comments on commit 49966b8

Please sign in to comment.