I'm having trouble mapping my gallery image urls into the src field. The output is [object object]. Any pointers on where im going on would be great!
code -
<div className="image-grid">
{data.home.galleryImage.map((url, index) => (
<div className="image-item" key={`${index}-cl`}>
<img src={url} alt={"no alt :("} />
</div>
))
}
</div>
graphql query -
export const query = graphql`
query GetSingleHome($slug: String) {
home: strapiHomes(slug: { eq: $slug }) {
galleryImage {
url
}
}
}
`