I am trying to create some inspector controls when selecting a post (custom block) but everytime I create another block, the custom controls start adding up.
The block.js code is here:
View this gist on GitHub
If I have 2 of my custom blocks, I’ll have 2 selects for Posts (each select is related to each block -> working) but somehow all the controls are being displayed on every block setting of my type.
I’ve used https://github.com/ahmadawais/create-guten-block for initial setup.
Image of duplicate controls: https://imgur.com/e43p5RU