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
|
@ -58,9 +58,11 @@
|
|||
}
|
||||
|
||||
const getAutomationNameError = name => {
|
||||
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 (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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue