We need to remove redundant value from the second array before looping.
<select id="lang" value={comment.ChannelName} autoFocus
className="btn_primary" onChange={e => setPlayer(e.target.value, comment.idx)} >
<option value="select">{comment.ChannelName}</option>
{selectedData.map((val) => {
// setCHANNEL = val;
//console.log("val", val)
return (
<>
{
val.map((val1, inde) => {
return (
<option value={val1 ? val1 : ""}>{val1}</option>
)
})
}
</>
)
})
}
</select>