1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

revert to empty array on fields object being empty

This commit is contained in:
Peter Clement 2024-01-11 11:01:23 +00:00
parent c5f5932c2a
commit bf12e5bc1e

View file

@ -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] },
])