diff --git a/packages/block-editor/src/hooks/duotone.js b/packages/block-editor/src/hooks/duotone.js index bfd008586786c..18a56c2b5f149 100644 --- a/packages/block-editor/src/hooks/duotone.js +++ b/packages/block-editor/src/hooks/duotone.js @@ -130,8 +130,8 @@ function DuotonePanel( { name, attributes, setAttributes } ) { if ( ! hasBlockSupport( name, 'color.__experimentalDuotone' ) || - ( duotonePalette?.length === 0 && - colorPalette?.length === 0 && + ( ( ! duotonePalette || duotonePalette?.length === 0 ) && + ( ! colorPalette || colorPalette?.length === 0 ) && disableCustomColors ) ) { return null;