strapi / strapi

πŸš€ Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable and developer-first.
https://strapi.io
Other
60.66k stars 7.58k forks source link

fix: content could be undefined #20180

Closed alexandrebodin closed 3 weeks ago

alexandrebodin commented 3 weeks ago

What does it do?

content can be undefined because of some timing issues. the Cell is rendered before the new data is loaded when navigating between content types in the CM list views.

There is a depper issue to fix for v5 but it it's still valid to check the value is defined and is an array before accessing that length prop regardless

Why is it needed?

Fix a bug

How to test it?

Navigating in the CM between content-types with repeatable components displayed in the list view should not reproduce the error anymore

Related issue(s)/PR(s)

Fix https://github.com/strapi/strapi/issues/19660

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
contributor-docs ❌ Failed (Inspect) Apr 23, 2024 0:52am