Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 27, 2024
1 parent 6897d91 commit 74d4822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const InserterDraggableBlocks = ( {
pattern?.syncStatus !== 'unsynced'
? [ createBlock( 'core/block', { ref: pattern.id } ) ]
: undefined;
}, [ pattern ] );
}, [ pattern?.type, pattern?.syncStatus, pattern?.id ] );

if ( ! isEnabled ) {
return children( {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export function MediaPlaceholder( {
async function handleBlocksDrop( event ) {
const { blocks } = parseDropEvent( event );

if ( ! blocks || ! blocks.length ) {
if ( ! blocks?.length ) {
return;
}

Expand Down

0 comments on commit 74d4822

Please sign in to comment.