Optional chaining for selectedAutomation
This commit is contained in:
parent
bbb2c20b6e
commit
e0dfc0ea10
|
@ -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 || ""
|
||||
|
|
Loading…
Reference in New Issue