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

Merged
merged 4 commits into from
Sep 24, 2024
Merged

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 acb3556
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/66f27ccf066ef400088625c5

@giuliaghisini
Copy link
Contributor Author

@sneridagh @ichim-david do you think we could merge this one during Salamina sprint?

Copy link
Sponsor Member

@ichim-david ichim-david left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@giuliaghisini I'm ok with the fix and merging for 18. Victor next :)

@pnicolli pnicolli merged commit 2c55abb into main Sep 24, 2024
70 checks passed
@pnicolli pnicolli deleted the fix_find_blocks branch September 24, 2024 09:26
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.

3 participants