update type check

This commit is contained in:
Vikhyath Mondreti
2026-01-24 01:45:03 -08:00
parent 587d44ad6f
commit d3f20311d0

View File

@@ -159,7 +159,7 @@ export class WorkflowBlockHandler implements BlockHandler {
childTraceSpans = this.captureChildWorkflowLogs(executionResult, childWorkflowName, ctx)
logger.info(`Captured ${childTraceSpans.length} child trace spans from failed execution`)
} else if (error.childTraceSpans && Array.isArray(error.childTraceSpans)) {
} else if (ChildWorkflowError.isChildWorkflowError(error)) {
childTraceSpans = error.childTraceSpans
}