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
Adding default template for content type with block(having schemaEnhancer) throwing error. #5158
Comments
@iFlameing Your report here is really vague. Specifically we saw this when trying to add an image block to a layout in a project where the image block has a schema enhancer that tries to adjust the
Edited to add: The problem is that schema extenders are being applied to the block layout settings schema, in addition to the main block schema. |
CC @avoinea |
I would need a more details example of this in order to fully understand the issue and the relation with the DX Layout schema. |
@avoinea For example, we have a schema enhancer that adds "block width" and "background color" properties to a block. When editing the layout, the fields show up on both the Block and Settings tabs, because the schema enhancer is applied to both the block schema and the settings schema: Even worse, if the schema enhancer makes assumptions about the schema it is enhancing (like making a change to an existing field), then trying to use the block while editing the block layout can result in an error. #5159 fixes this by making sure that schema enhancers are not applied to the layout settings schema. |
If you have a schema enhancer for a particular block and then you try to add this block in the layout options of content type will throw error.
Steps to reproduce the error.
You will get error.
The text was updated successfully, but these errors were encountered: