Merge pull request #12830 from Budibase/fix/automation-bindings-name-fix

fix issue where readable binding wasn't working correctly with named steps
This commit is contained in:
Peter Clement 2024-01-23 09:32:29 +00:00 committed by GitHub
commit 3d13b2341a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -184,8 +184,9 @@
}
if (
(idx === 0 && automation.trigger?.event === "row:update") ||
automation.trigger?.event === "row:save"
idx === 0 &&
(automation.trigger?.event === "row:update" ||
automation.trigger?.event === "row:save")
) {
if (name !== "id" && name !== "revision") return `trigger.row.${name}`
}