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
1 changed files with 1 additions and 1 deletions

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