Skip to content

Commit

Permalink
fix: ensure invalid or undefined colours fall back to set value as an…
Browse files Browse the repository at this point in the history
… empty string
  • Loading branch information
g-elwell committed Aug 23, 2024
1 parent 55bf1a9 commit 99c653c
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 99c653c

Please sign in to comment.