Skip to content

Commit

Permalink
Patterns (Try): Pass 'blocks' as inner blocks value
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Sep 4, 2024
1 parent 3a310c4 commit f802f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/block/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function ReusableBlockEdit( {
const innerBlocksProps = useInnerBlocksProps( blockProps, {
templateLock: 'all',
layout,
value: innerBlocks.length > 0 ? innerBlocks : blocks,
value: blocks,
onInput: NOOP,
onChange: NOOP,
renderAppender: blocks?.length ? undefined : blocks.ButtonBlockAppender,
Expand Down

0 comments on commit f802f2d

Please sign in to comment.