Skip to content

Commit

Permalink
Fix: List view renders an empty menu when no actions are eligible. (#…
Browse files Browse the repository at this point in the history
…62786)

Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
  • Loading branch information
3 people committed Jun 25, 2024
1 parent 1ba8018 commit e2259f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dataviews/src/view-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function ListItem< Item extends AnyItem >( {
</HStack>
</CompositeItem>
</div>
{ actions?.length > 0 && (
{ eligibleActions?.length > 0 && (
<HStack
spacing={ 1 }
justify="flex-end"
Expand Down

0 comments on commit e2259f6

Please sign in to comment.