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