budibase
budibase copied to clipboard
Two JS Scripting Steps can have the same name and their bindings display together
Checklist
- [x] I have searched budibase discussions and github issues to check if my issue already exists
Hosting
- Self
- Method: docker
- Budibase Version: 2.32.5
Describe the bug When creating an automation with multiple JS Scripting steps it is possible to change the names of the scripting blocks so that they match. When the names match, both sets of "Success (boolean)" and "Value(text)" appear in the bindings drawer under the JS Scripting Block of that name.
To Reproduce Steps to reproduce the behavior:
- Create an automation
- add 3 JS Scripting Blocks
- Change the name of the second JS Scripting Block to match the first (remove the "2")
- Edit the code of the third JS Scripting block
- open the bindings drawer to see a single JS Scripting Block available
- Enter that JS Scripting Block and see Duplicates of Success+Value
**Note: It is not possible to have a third JS Scripting Block of the same name through this process.
Expected behaviour If only the names are being used to identify the JS Scripting blocks, they should be unique.
Screenshots JAM: https://jam.dev/c/259c5cdb-e2f8-4cf0-8d19-56d5f37937b0
App Export Venu Automations-export-1726837313634.tar.gz
Desktop (please complete the following information):
- OS: MacOS
- Browser hrome
- Version 128.0.6613.114 (Official Build) (arm64)
Additional context Issue was discovered while investigating something for a customer.