[DE PE SSE mobile] Fix Bug 59230
This commit is contained in:
parent
a1bddbb845
commit
eb6bc50a01
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue