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
…WordPress#63555)

Co-authored-by: scruffian <scruffian@git.wordpress.org>
Co-authored-by: jeryj <jeryj@git.wordpress.org>
Co-authored-by: bgardner <bgardner@git.wordpress.org>
  • Loading branch information
4 people authored and carstingaxion committed Jul 18, 2024
1 parent d80d801 commit c96f362
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 c96f362

Please sign in to comment.