storyblok-cli
storyblok-cli copied to clipboard
component_whitelist field includes removed components
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.