Optional chaining for selectedAutomation

This commit is contained in:
Dean 2024-11-05 10:48:57 +00:00
parent bbb2c20b6e
commit e0dfc0ea10
1 changed files with 1 additions and 1 deletions

View File

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