Skip to content

Commit

Permalink
Data Views: Do not render bulk actions Dropdown if no actions are ava…
Browse files Browse the repository at this point in the history
…ilable (#63575)

Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
  • Loading branch information
3 people committed Jul 16, 2024
1 parent 4dbb870 commit ac29b27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/dataviews/src/bulk-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ function ActionsMenuGroup< Item >( {
);
} );
}, [ actions, selectedItems ] );

if ( ! elligibleActions.length ) {
return null;
}
return (
<>
<DropdownMenuGroup>
Expand Down

0 comments on commit ac29b27

Please sign in to comment.