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 expect to be able to nest and mix lists as usual markdown but the renderer is reading the values of the nested nodes as undefined when mapping. Still looking through what the issue is exactly, but it seems like the nested unordered list is returning null.
The text was updated successfully, but these errors were encountered:
What version of
@strapi/blocks-react-renderer
are you using?npm: 10.7.0
node: 20.14.0
react: 18.2.0
@strapi/blocks-react-renderer: 1.0.1
gatsby: 5.13.3
browser: all
What's Wrong?
When using the Rich Text block in Strapi CMS, the blocks-react-renderer is unable to render out nested unordered lists within ordered lists
To Reproduce
in your CMS, reproduce the following markdown in Strapi's Rich Text Block:
The output should look like this:
In your front-end of choice, I am using Gatsby, fetch your data and pass it through to the blocks-renderer.
Here is the object output from Strapi:
using the rendering component:
the error I receive: Cannot read properties of undefined (reading 'map')
Error in function Block in ./node_modules/.pnpm/@strapi[email protected][email protected][email protected][email protected]/node_modules/@strapi/blocks-react-renderer/dist/Block.mjs:45
Expected Behaviour
I expect to be able to nest and mix lists as usual markdown but the renderer is reading the values of the nested nodes as undefined when mapping. Still looking through what the issue is exactly, but it seems like the nested unordered list is returning null.
The text was updated successfully, but these errors were encountered: