mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-24 06:18:04 -05:00
update type check
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user