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 358ccd1224
commit ff40ddd9af
1 changed files with 1 additions and 1 deletions

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 {