pr comment

This commit is contained in:
Peter Clement 2024-11-25 20:34:04 +00:00
parent 6da45f5e7c
commit 3737fb14e3
1 changed files with 13 additions and 2 deletions

View File

@ -527,10 +527,21 @@ const automationActions = store => ({
} else if (
currentBlock?.stepId === AutomationActionStepId.EXECUTE_SCRIPT
) {
runtimeName = `steps["${pathSteps[idx]?.id}"].${name}`
const stepId = pathSteps[idx].id
if (!stepId) {
notifications.error("Error generating binding: Step ID not found.")
return null
}
runtimeName = `steps["${stepId}"].${name}`
} else {
runtimeName = `steps.${pathSteps[idx]?.id}.${name}`
const stepId = pathSteps[idx].id
if (!stepId) {
notifications.error("Error generating binding: Step ID not found.")
return null
}
runtimeName = `steps.${stepId}.${name}`
}
return runtimeName
}