fix issue with stepNames being undefined
This commit is contained in:
parent
d3a1d48743
commit
7b7b2a12ea
|
@ -58,11 +58,13 @@
|
|||
}
|
||||
|
||||
const getAutomationNameError = name => {
|
||||
if (stepNames) {
|
||||
for (const [key, value] of Object.entries(stepNames)) {
|
||||
if (name === value && key !== block.id) {
|
||||
return "This name already exists, please enter a unique name"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (name !== block.name && name?.length > 0) {
|
||||
let invalidRoleName = !validRegex.test(name)
|
||||
|
|
Loading…
Reference in New Issue