fix bug in adding trigger
This commit is contained in:
parent
3eba7990f9
commit
8203139c69
|
@ -20,7 +20,7 @@
|
|||
const dispatch = createEventDispatcher()
|
||||
|
||||
$: stepNames = $selectedAutomation.definition.stepNames
|
||||
$: automationName = stepNames[block.id] || block.name || ""
|
||||
$: automationName = stepNames?.[block.id] || block?.name || ""
|
||||
$: automationNameError = getAutomationNameError(automationName)
|
||||
$: status = updateStatus(testResult, isTrigger)
|
||||
$: isTrigger = isTrigger || block.type === "TRIGGER"
|
||||
|
@ -32,7 +32,7 @@
|
|||
}
|
||||
}
|
||||
$: loopBlock = $selectedAutomation?.definition.steps.find(
|
||||
x => x.blockToLoop === block.id
|
||||
x => x.blockToLoop === block?.id
|
||||
)
|
||||
|
||||
async function onSelect(block) {
|
||||
|
@ -65,7 +65,8 @@
|
|||
}
|
||||
}
|
||||
return null
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
const startTyping = async () => {
|
||||
typing = true
|
||||
|
|
Loading…
Reference in New Issue