Skip to content

Commit

Permalink
Fix alignments for children of Query block. (#44144)
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines authored Sep 14, 2022
1 parent e21026b commit daece9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-library/src/query/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export function QueryContent( {
return { themeSupportsLayout: getSettings()?.supportsLayout };
}, [] );
const defaultLayout = useSetting( 'layout' ) || {};
const usedLayout = !! layout && layout.inherit ? defaultLayout : layout;
const usedLayout = ! layout?.type
? { ...defaultLayout, ...layout, type: 'default' }
: { ...defaultLayout, ...layout };
const blockProps = useBlockProps();
const innerBlocksProps = useInnerBlocksProps( blockProps, {
template: TEMPLATE,
Expand Down

0 comments on commit daece9c

Please sign in to comment.