Skip to content

Commit

Permalink
pass through client ids in useConvertToGroupButtonProps
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Aug 30, 2023
1 parent d2f49a1 commit 32c4caf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ export default function useConvertToGroupButtonProps( selectedClientIds ) {
: getSelectedBlockClientIds();
const blocksSelection = getBlocksByClientId( clientIds );
const [ firstSelectedBlock ] = blocksSelection;
const _isUngroupable = isUngroupable();
const _isUngroupable =
clientIds.length === 1 && isUngroupable( clientIds[ 0 ] );
return {
clientIds,
isGroupable: isGroupable(),
isGroupable: isGroupable( clientIds ),
isUngroupable: _isUngroupable,
blocksSelection,
groupingBlockName: getGroupingBlockName(),
Expand Down

0 comments on commit 32c4caf

Please sign in to comment.