Skip to content

Commit

Permalink
Get clientId from block rather than passed in as prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed May 9, 2023
1 parent 5dbc90a commit 96151df
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

0 comments on commit 96151df

Please sign in to comment.