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 || ""