Skip to content

Commit

Permalink
Get clientId from block rather than passed in as prop (#50473)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj authored May 9, 2023
1 parent 5b50833 commit f13b57d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ function AddSubmenuItem( { block, onClose } ) {
}

export default function LeafMoreMenu( props ) {
const { clientId, block } = props;
const { block } = props;
const { clientId } = block;

const { moveBlocksDown, moveBlocksUp, removeBlocks } =
useDispatch( blockEditorStore );
Expand Down

1 comment on commit f13b57d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in f13b57d.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4927819888
📝 Reported issues:

Please sign in to comment.