Skip to content
Discussion options

You must be logged in to vote

The formatting is really messed up so it's a little unclear, but I think your issue is in the render component:

render={data => (
  {data.allWordpressWpApiMenusMenusItems}
//   {props.allWordpressWpApiMenusMenusItems.edges[0].node.items.map(
//       item => (
//          <div to={`/${item.object_slug}`} key={item.title}>
//               {item.title}
//          </div> 
//       )
//   )}

That render function looks wrong, but it's hard to know what you are trying to do. Start with the simplest thing and build outwards:

      render={data => (
        <div>
          {JSON.stringify(data)}
        </div>
      )}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@zack-rose
Comment options

@zack-rose
Comment options

@zack-rose
Comment options

@herecydev
Comment options

Answer selected by zack-rose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants