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

component_whitelist field includes removed components #73

Open
yobananaboy15 opened this issue Oct 3, 2023 · 1 comment
Open

component_whitelist field includes removed components #73

yobananaboy15 opened this issue Oct 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@yobananaboy15
Copy link

yobananaboy15 commented Oct 3, 2023

Current behavior:

In the json file generated by the pull-components command, the component_whitelist field for type "bloks" contains deleted blocks.

Expected behavior:

Deleted blocks should automatically be removed from the component_whitelist field. Currently the only way of solving this is to recreate the block that had the removed component white listed.

Steps to reproduce:

  • Create a block.
  • Create another block with a field of the types bloks and add the first block as a white listed component.
  • Run the pull-components command
  • Delete the first block from the workspace.
  • Run the pull-components command again
  • The deleted block is still in the component_whitelist field in the generated json file.
@yobananaboy15 yobananaboy15 added the bug Something isn't working label Oct 3, 2023
@yobananaboy15 yobananaboy15 changed the title component_white field includes removed components component_whitelist field includes removed components Oct 5, 2023
@kaptankorkut
Copy link

This behavior causes additional problems when typescript types are generated. References to non-existing block types are added in the blocks section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants