1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

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

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}`
}