1
0
Fork 0
mirror of synced 2024-09-25 13:51:40 +12:00
This commit is contained in:
Peter Clement 2024-09-23 15:02:37 +01:00
parent 189caa6235
commit 335240718c

View file

@ -59,14 +59,12 @@
}
const getAutomationNameError = name => {
if (stepNames && editing) {
// Check against stepNames
for (const [key, value] of Object.entries(stepNames)) {
if (name !== block.name && name === value && key !== block.id) {
return "This name already exists, please enter a unique name"
}
}
// Check against other block names
for (const step of allSteps) {
if (step.id !== block.id && name === step.name) {
return "This name already exists, please enter a unique name"