You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to render dynamically my navigation menu. Unfortunately all I get is an empty field, even though I can get the correct data on my graphQL. this is my first time publicly requesting help. I hope this first post provides all the necessary information so that more talented developers can help me in my ask. :b
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to render dynamically my navigation menu. Unfortunately all I get is an empty field, even though I can get the correct data on my graphQL. this is my first time publicly requesting help. I hope this first post provides all the necessary information so that more talented developers can help me in my ask. :b
My site is live on: https://metsanotus.netlify.app/ and you can see that the ul that has {menuLinks} inside is empty.
Here is what my graphQl structure is:
And I do get the specific data that I want to retrieve.:
^^ This data is set up on my gatsby-config.js inside my siteMetaData object under MenuLinks object.
These are my two attempts at trying to map my menu:
https://gist.github.com/otsolap/9bf186db6793bdcf721d520a45336e09
https://gist.github.com/otsolap/e9935bf4de44c17ab3f91e352229db81
Here is the code from the first gist, just to show an example:
I think i'm very close to getting this done correct but am missing a small piece of crucial code.... Could some kind chap help a junior dev out? :b
Beta Was this translation helpful? Give feedback.
All reactions