From 832ee22c0a416d293d7451cd09ac328b23372281 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Mon, 19 Jun 2023 11:43:00 +0100 Subject: [PATCH] fix issue with adding automation step --- .../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 a8fa700b90..d2e34319da 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte @@ -309,7 +309,7 @@ } function canShowField(key, value) { - const dependsOn = value.dependsOn + const dependsOn = value?.dependsOn return !dependsOn || !!inputData[dependsOn] }