Merge branch 'feat/automation-naming-ux-updates-copy-2' into feat/automation-naming-ux-updates

This commit is contained in:
Peter Clement 2023-11-03 11:09:03 +00:00
commit d3a1d48743
2 changed files with 7 additions and 1 deletions

View File

@ -58,11 +58,18 @@
}
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 (name !== block.name && name?.length > 0) {
let invalidRoleName = !validRegex.test(name)
if (invalidRoleName) {
return "Please enter a role name consisting of only alphanumeric symbols and underscores"
}
return null
}
}

View File

@ -282,7 +282,6 @@
}
function shouldRenderField(value) {
console.log(value)
return (
value.customType !== "row" &&
value.customType !== "code" &&