Merge pull request #12287 from Budibase/feat/automation-naming-ux-updates
Fix issue with automation names object being undefined
This commit is contained in:
commit
0286b85625
1 changed files with 5 additions and 3 deletions
|
@ -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 a new issue