catalog-model: make Template beta2 step id and name optional
This commit is contained in:
@@ -360,7 +360,11 @@ export async function createRouter(
|
||||
|
||||
taskSpec = {
|
||||
values,
|
||||
steps: template.spec.steps,
|
||||
steps: template.spec.steps.map((step, index) => ({
|
||||
...step,
|
||||
id: step.id ?? `step-${index + 1}`,
|
||||
name: step.name ?? step.action,
|
||||
})),
|
||||
output: template.spec.output ?? {},
|
||||
};
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user