Skip to content

Commit

Permalink
Color Randomizer: Fix an error when the theme has no color palette (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jun 16, 2023
1 parent 6aaacd4 commit 6360e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/global-styles/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function Palette( { name } ) {
</HStack>
</NavigationButtonAsItem>
</ItemGroup>
{ randomizeThemeColors && (
{ themeColors?.length > 0 && (
<Button
variant="secondary"
icon={ shuffle }
Expand Down

1 comment on commit 6360e76

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 6360e76.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5286490570
📝 Reported issues:

Please sign in to comment.