• Hi, I’m getting the following error after upgrading to WP-REST API version 0.10

    index.js:372 Uncaught (in promise) TypeError: Cannot read property ‘length’ of undefined

    Here’s what’s going on around line 372:

    classes.mainNavSecondaryLinks
                )}>
                  {menuData?.secondary_links.length > 0 &&       <====== LINE 372 
                    <ul>
                        {menuData.secondary_links.map((item, i) => {
                          if (!item.link) return (<></>);
  • The topic ‘Uncaught (in promise) TypeError: Cannot read property ‘length’ of undefined’ is closed to new replies.