From 59eb59079f164700511bbc0f992e9d17fa6764f4 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 24 Mar 2020 09:12:47 +0100 Subject: [PATCH] Update packages/block-editor/src/hooks/color.js Co-Authored-By: Zebulan Stanphill --- packages/block-editor/src/hooks/color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/hooks/color.js b/packages/block-editor/src/hooks/color.js index 468d6a970e6671..75fad2274229e8 100644 --- a/packages/block-editor/src/hooks/color.js +++ b/packages/block-editor/src/hooks/color.js @@ -181,7 +181,7 @@ export const withBlockControls = createHigherOrderComponent( color: { ...style?.color, [ name ]: - colorObject && colorObject.slug ? undefined : value, + colorObject?.slug ? undefined : value, }, }; const newNamedColor =