Skip to content

Commit

Permalink
Merge pull request #100 from bigbite/fix/93-clear-color
Browse files Browse the repository at this point in the history
[93] Ensure undefined or invalid colours fall back to an empty string
  • Loading branch information
g-elwell authored Aug 27, 2024
2 parents b70c1a5 + 99c653c commit 901571f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/components/StylesColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Color = ( { selector } ) => {
config = set(
config,
[ selector, key ].join( '.' ),
hexToVar( newValue, themePalette )
hexToVar( newValue, themePalette ) ?? ''
);
setUserConfig( config );
};
Expand Down

0 comments on commit 901571f

Please sign in to comment.