Skip to content

Commit

Permalink
Don't show the default style if its the only one avaiable
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Jul 5, 2024
1 parent 2e65708 commit fa7a474
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ export default function StyleVariationsContainer( { gap = 2 } ) {
];
}, [ themeStyles, userStyles?.blocks, userStyles?.css ] );

if ( themeVariations.length <= 1 ) {
return null;
}

return (
<Grid
columns={ 2 }
Expand Down

0 comments on commit fa7a474

Please sign in to comment.