Wp Menu Cannot read property 'map' of undefined

Hello @mburridge. I have been following the wp menu video Frontity Talks 2021-01 - Fetching menus from WordPress - YouTube
but all I seem to be getting is Screenshot - c372128b2e2e957a8119864d488cc3ca - Gyazo Screenshot - 7c4a08bcedf9f559402ab26e0dd4595c - Gyazo

github link GitHub - TristonH55/my-frontity-wp: menu rigging for frontity and wordpress.

Thanks for your help.

Hi, if map returns undefined, it’s because one of your variables is undefined from the beggining, have you checked the value of each one ? Might be because you render your map before variables has value, try to use useEffect maybe ?