I am using the gallery ACF in WordPress, my console.log proves my query and component to be accurately sourcing the data, however, the gallery images do not show up on my page both locally or in a production build. Can someone please help me figure this out?
My query:
query GalleryQuery {
wpPage(databaseId: {eq: 41}) {
ACF_GalleryPage {
gallery {
id
altText
localFile {
childImageSharp {
gatsbyImageData
fluid {
base64
tracedSVG
srcWebp
srcSetWebp
originalImg
originalName
src
}
fixed {
src
}
}
}
}
}
}
}
My component:
export default function GalleryPortfolio() {
const data = useGalleryQuery()
return (
<Section>
<Container>
{data.wpPage.ACF_GalleryPage.gallery.map(localFile => {
console.log(localFile.localFile.childImageSharp.fluid.src);
<GatsbyImage image={localFile.localFile.childImageSharp.fluid.src} alt="" />
})}
</Container>
</Section>
)
}