From bf12e5bc1e456a0218295cc5a7444ea89900e483 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Thu, 11 Jan 2024 11:01:23 +0000 Subject: [PATCH] revert to empty array on fields object being empty --- .../automation/SetupPanel/AutomationBlockSetup.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte index 34c7c44ecd..b8aaf10443 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte @@ -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] }, ])