Support a 0 step index in test context

This commit is contained in:
Josh Gross
2023-01-24 13:04:40 -05:00
parent 1f3f130a4d
commit 4f9c9e6e1c
@@ -19,7 +19,7 @@ export function createWorkflowContext(workflow: string, job?: string, stepIndex?
context.job = template.jobs.find(j => j.id.value === job);
}
if (stepIndex) {
if (stepIndex !== undefined) {
context.step = context.job?.steps[stepIndex];
}