Closed kasparpalgi closed 1 year ago
Hey, when I set the exact same array:
const items = [ { value: "whatsapp", label: "<img src='https://projects.crewnew.com/crewnew/img/icons/wa.png' width='12' alt='WhatsApp'> WhatsApp", }, { value: "discord", label: "<img src='https://projects.crewnew.com/crewnew/img/icons/discord.png' alt='Discord'> Discord", }, { value: "facebook", label: "<img src='https://projects.crewnew.com/crewnew/img/icons/fb.png' alt='Messenger'> Facebook Messenger", }, ];
then works fine but when I fetch from the API then it just doesn't work although I get EXACT the same array as you can see from the console.log: https://i.imgur.com/8vkdZK1.png
OK, when I <pre> it instead console.log then I get [object Object] so I guess my poor JS skills are the issue here.
<pre>
[object Object]
Hey, when I set the exact same array:
then works fine but when I fetch from the API then it just doesn't work although I get EXACT the same array as you can see from the console.log: https://i.imgur.com/8vkdZK1.png