Skip to content

Commit

Permalink
No preview buttons in template grids
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hayward committed Feb 8, 2024
1 parent 24156f9 commit 28288ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ function Preview( { item, viewType } ) {
className={ `page-templates-preview-field is-viewtype-${ viewType }` }
style={ { backgroundColor } }
>
{ viewType === LAYOUT_LIST && ! isEmpty && (
{ viewType !== LAYOUT_TABLE && ! isEmpty && (
<BlockPreview blocks={ blocks } />
) }
{ viewType !== LAYOUT_LIST && (
{ viewType === LAYOUT_TABLE && (
<button
className="page-templates-preview-field__button"
type="button"
Expand Down

0 comments on commit 28288ec

Please sign in to comment.