Skip to content

Commit

Permalink
getFormatColors - Fix appending undefined values
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Mar 18, 2024
1 parent 99b9fad commit 8bf9e20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function getFormatColors( formats, colors ) {
);
const currentStyles = currentFormat?.attributes?.style;
if (
colorObject &&
colorObject?.color &&
( ! currentStyles ||
currentStyles?.indexOf( colorObject.color ) ===
-1 )
Expand Down

0 comments on commit 8bf9e20

Please sign in to comment.