object Object в теге option
Я пытаюсь получит множество тегов option , component Addreess возвращает return adrress.features.find(place => place.id.match(region)).text, если выведу в тег <p></p> без select получу мои данные, но в options object Object. Why?
<select name="cities" id="cities">
{data.allContentfulBlogPost.edges.map((edge) => {
return (
<Adrress x={edge.node.location.lon} y={edge.node.location.lat} />
)
}
)}
</select>
Output : <select name="cities" id="cities">WarsawManchester</select>
Меняю на
<option value=""><Adrress x={edge.node.location.lon} y={edge.node.location.lat} /></option>
Output :
<select name="cities" id="cities">
<option value="">[object Object]</option>
<option value="">[object Object]</option>
</select>