Skip to content

Commit 5b3cc2b

Browse files
committed
update type guard:
1 parent 7ba07bc commit 5b3cc2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/lib/workflows/blocks/block-outputs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ export function getToolOutputPaths(
637637
continue
638638
}
639639

640-
const condition = (blockOutput as any).condition as OutputCondition | undefined
640+
const condition = 'condition' in blockOutput ? blockOutput.condition : undefined
641641
if (condition) {
642642
if (evaluateOutputCondition(condition, subBlocks)) {
643643
filteredOutputs[key] = value

0 commit comments

Comments
 (0)