Skip to content

Commit

Permalink
Block Hooks: Fix toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jan 18, 2024
1 parent aa9b374 commit 90e112d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/hooks/block-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function BlockHooksControlPure( { name, clientId } ) {
}

const hookedBlock = candidates?.find(
( candidate ) => name === candidate.name
( candidate ) => candidate.name === block.name
);

// If the block exists in the designated location, we consider it hooked
Expand Down

0 comments on commit 90e112d

Please sign in to comment.