Skip to content

Commit

Permalink
Update packages/block-editor/src/hooks/color.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Zebulan Stanphill <[email protected]>
  • Loading branch information
youknowriad and ZebulanStanphill committed Mar 24, 2020
1 parent 59eb590 commit 1468aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/hooks/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const withBlockControls = createHigherOrderComponent(
},
};
const newNamedColor =
colorObject && colorObject.slug ? colorObject.slug : undefined;
colorObject?.slug ? colorObject.slug : undefined;
props.setAttributes( {
style: newStyle,
[ attributeName ]: newNamedColor,
Expand Down

0 comments on commit 1468aaa

Please sign in to comment.