Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: find blocks if fieldname is similiar to 'blocks' #6299

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

giuliaghisini
Copy link
Contributor

Fixed findBlocks because if we have a block with a property inside which name ends with 'blocks' the findBlocks function is called assuming that field contains something similar to volto's block, but it couldn't be.

For example, if we have some blocks with the property 'subblocks' inside that is simply an array of object (not volto's blocks) an error is thrown

Copy link

netlify bot commented Sep 20, 2024

Deploy Preview for plone-components canceled.

Name Link
🔨 Latest commit 0d1675f
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/66ed3e51e00141000881c898

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant