Skip to content

Commit

Permalink
Style variations: Don't display the default if its the only variation (
Browse files Browse the repository at this point in the history
…#63555)

Co-authored-by: scruffian <[email protected]>
Co-authored-by: jeryj <[email protected]>
Co-authored-by: bgardner <[email protected]>
  • Loading branch information
4 people authored Jul 15, 2024
1 parent afb24fc commit 81d0e66
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ export default function StyleVariationsContainer( { gap = 2 } ) {
];
}, [ fullStyleVariations, userStyles?.blocks, userStyles?.css ] );

if ( ! fullStyleVariations || fullStyleVariations?.length < 1 ) {
return null;
}

return (
<Grid
columns={ 2 }
Expand Down

0 comments on commit 81d0e66

Please sign in to comment.