pr comment
This commit is contained in:
parent
6da45f5e7c
commit
3737fb14e3
|
@ -527,10 +527,21 @@ const automationActions = store => ({
|
||||||
} else if (
|
} else if (
|
||||||
currentBlock?.stepId === AutomationActionStepId.EXECUTE_SCRIPT
|
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 {
|
} 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
|
return runtimeName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue