Skip to content

Commit

Permalink
Fix React warning
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Jan 25, 2024
1 parent 4e89f46 commit 29fd351
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/block-library/src/block/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,8 @@ export default function ReusableBlockEdit( {
);
const layoutClasses = useLayoutClasses( { layout }, name );

const flashEditableBlocksRef = useFlashEditableBlocks( patternClientId );

const blockProps = useBlockProps( {
ref: flashEditableBlocksRef,
ref: useFlashEditableBlocks( patternClientId ),
className: classnames(
'block-library-block__reusable-block-container',
layout && layoutClasses,
Expand All @@ -286,7 +284,6 @@ export default function ReusableBlockEdit( {
} );

const innerBlocksProps = useInnerBlocksProps( blockProps, {
ref: flashEditableBlocksRef,
templateLock: 'all',
layout,
renderAppender: innerBlocks?.length
Expand Down

0 comments on commit 29fd351

Please sign in to comment.