From e0dfc0ea10a86718bacb31ed476253941215ce75 Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 5 Nov 2024 10:48:57 +0000 Subject: [PATCH] Optional chaining for selectedAutomation --- .../AutomationBuilder/FlowChart/FlowItemHeader.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte index 3e99786121..0aa43f8e04 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte @@ -21,7 +21,7 @@ let editing = false const dispatch = createEventDispatcher() - $: blockRefs = $selectedAutomation.blockRefs || {} + $: blockRefs = $selectedAutomation?.blockRefs || {} $: stepNames = automation?.definition.stepNames $: allSteps = automation?.definition.steps || [] $: automationName = itemName || stepNames?.[block.id] || block?.name || ""