Fix hdca reference in invocation reports

Love that we still forget about them
This commit is contained in:
mvdbeek
2025-06-22 14:36:06 +02:00
committed by Nate Coraor
parent ab760be9ee
commit 627f04f13e
2 changed files with 4 additions and 3 deletions
@@ -15,6 +15,7 @@ export interface Invocation {
history_id: string;
inputs: Record<string, { label?: string; id?: string }>;
outputs: Record<string, { id?: string }>;
output_collections: Record<string, { id?: string }>;
steps: { workflow_step_label?: string; job_id?: string; implicit_collection_jobs_id?: string }[];
workflow_id: string;
}
@@ -26,10 +26,10 @@ export function parseInput(invocation: Invocation, name: string | undefined) {
}
export function parseOutput(invocation: Invocation, name: string | undefined) {
if (name && invocation.outputs) {
const output = invocation.outputs[name];
return output?.id;
if (!name) {
return undefined
}
return invocation.outputs[name]?.id || invocation.output_collections[name]?.id
}
export function parseStep(invocation: Invocation, name: string | undefined) {