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 48e4b68 commit 086894c
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 @@ -182,7 +182,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 086894c

Please sign in to comment.