[DE PE SSE mobile] Fix Bug 59230

This commit is contained in:
SergeyEzhin 2022-10-06 17:04:20 +05:00
parent a1bddbb845
commit eb6bc50a01

View file

@ -61,15 +61,15 @@ const CustomColors = ({ options, customColors, isTypeColors, onColorClick, curCo
return ( return (
<div className='palette'> <div className='palette'>
{colors && colors.length > 0 && colors.map((color, index) => { {colors && colors.length > 0 ? colors.map((color, index) => {
return( return (
<a key={`dc-${index}`} <a key={`dc-${index}`}
className={curColor && curColor === color && index === indexCurColor && !isTypeColors ? 'active' : ''} className={curColor && curColor === color && index === indexCurColor && !isTypeColors ? 'active' : ''}
style={{background: `#${color}`}} style={{background: `#${color}`}}
onClick={() => {onColorClick(color)}} onClick={() => {onColorClick(color)}}
></a> ></a>
) )
})} }) : null}
{emptyItems.length > 0 && emptyItems} {emptyItems.length > 0 && emptyItems}
</div> </div>
) )