1
0
Fork 0
mirror of synced 2024-07-14 18:55:45 +12:00

Merge pull request #12287 from Budibase/feat/automation-naming-ux-updates

Fix issue with automation names object being undefined
This commit is contained in:
Michael Drury 2023-11-06 10:16:12 +00:00 committed by GitHub
commit 0286b85625
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)