Skip to content

Commit

Permalink
Fix grid without media field
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Dec 5, 2024
1 parent 0a3d61c commit 85f25df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dataviews/src/dataviews-layouts/grid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ function GridItem< Item >( {
}
} }
>
{ showMedia && (
{ showMedia && renderedMediaField && (
<div { ...clickableMediaItemProps }>{ renderedMediaField }</div>
) }
{ showMedia && (
{ showMedia && renderedMediaField && (
<DataViewsSelectionCheckbox
item={ item }
selection={ selection }
Expand Down

0 comments on commit 85f25df

Please sign in to comment.