Skip to content

Commit

Permalink
Patterns: Pass 'blocks' as inner blocks value (#65029)
Browse files Browse the repository at this point in the history
* Patterns (Try): Pass 'blocks' as inner blocks value
* Remove comment

Unlinked contributors: rdoughbs.

Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: talldan <talldanwp@git.wordpress.org>
Co-authored-by: SantosGuillamot <santosguillamot@git.wordpress.org>
Co-authored-by: annezazu <annezazu@git.wordpress.org>
Co-authored-by: arthur791004 <arthur791004@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
Co-authored-by: skorasaurus <skorasaurus@git.wordpress.org>
Co-authored-by: noisysocks <noisysocks@git.wordpress.org>
Co-authored-by: htmgarcia <htmgarcia@git.wordpress.org>
Co-authored-by: rfischmann <rfischmann@git.wordpress.org>
  • Loading branch information
11 people authored Sep 4, 2024
1 parent c5b5135 commit 6730169
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-library/src/block/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,10 @@ function ReusableBlockEdit( {
),
} );

// Use `blocks` variable until `innerBlocks` is populated, which has the proper clientIds.
const innerBlocksProps = useInnerBlocksProps( blockProps, {
templateLock: 'all',
layout,
value: innerBlocks.length > 0 ? innerBlocks : blocks,
value: blocks,
onInput: NOOP,
onChange: NOOP,
renderAppender: blocks?.length
Expand Down

0 comments on commit 6730169

Please sign in to comment.