revert to empty array on fields object being empty
This commit is contained in:
parent
c5f5932c2a
commit
bf12e5bc1e
|
@ -256,7 +256,7 @@
|
|||
|
||||
if (idx === 0 && automation.trigger?.event === "app:trigger") {
|
||||
schema = Object.fromEntries(
|
||||
Object.keys(automation.trigger.inputs.fields).map(key => [
|
||||
Object.keys(automation.trigger.inputs.fields || []).map(key => [
|
||||
key,
|
||||
{ type: automation.trigger.inputs.fields[key] },
|
||||
])
|
||||
|
|
Loading…
Reference in New Issue