1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00

Fix bug with automations that have no inputs in an app action trigger

This commit is contained in:
Andrew Kingston 2022-04-07 16:02:08 +01:00
parent cdd2f205a7
commit 4a4d776c02

View file

@ -19,7 +19,7 @@
.filter(a => a.definition.trigger?.stepId === "APP")
.map(automation => {
const schema = Object.entries(
automation.definition.trigger.inputs.fields
automation.definition.trigger.inputs.fields || {}
).map(([name, type]) => ({ name, type }))
return {