[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 (
<div className='palette'>
{colors && colors.length > 0 && colors.map((color, index) => {
return(
{colors && colors.length > 0 ? colors.map((color, index) => {
return (
<a key={`dc-${index}`}
className={curColor && curColor === color && index === indexCurColor && !isTypeColors ? 'active' : ''}
style={{background: `#${color}`}}
onClick={() => {onColorClick(color)}}
></a>
)
})}
}) : null}
{emptyItems.length > 0 && emptyItems}
</div>
)