Duplicate color appear in palette #336
Labels
🔌 BU Blocks
💡 Bug
✅ Needs backend
⚙️ Plugin
🔥 Product bug
A bug which is not directly related to a custom child theme.
If colors are added via
add_theme_support( 'editor-color-palette', array(...) );
to get them to appear in core blocks andadd_filter( 'block_editor_settings' function() );
so that they appear in BU Blocks they are merged in the color palette but duplicate colors are not removed.The specific code block is
bu-blocks/src/global/theme-options.js
Lines 71 to 83 in a724324
Suggested code update is to replace
const newColors = defaultColors.concat( themeOptions );
with:The text was updated successfully, but these errors were encountered: