From b36593c08b5fa3abb44d3daaba6c1c3a25b73268 Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Thu, 15 Jun 2023 22:41:33 +0900 Subject: [PATCH] Color Randomizer: Fix an error when the theme has no color palette --- packages/edit-site/src/components/global-styles/palette.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/global-styles/palette.js b/packages/edit-site/src/components/global-styles/palette.js index 0aea8554de8de..6e9757415524c 100644 --- a/packages/edit-site/src/components/global-styles/palette.js +++ b/packages/edit-site/src/components/global-styles/palette.js @@ -91,7 +91,7 @@ function Palette( { name } ) { - { randomizeThemeColors && ( + { themeColors?.length > 0 && (