Skip to content

Commit 0e67d99

Browse files
committed
fix(memory): remove unused O(n²) join in onStreamChunk callback
1 parent b1f633d commit 0e67d99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-workflow-execution.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,12 +1394,11 @@ export function useWorkflowExecution() {
13941394
},
13951395
})
13961396

1397-
const accumulated = streamedChunks.get(data.blockId)!.join('')
13981397
const streamingExec: StreamingExecution = {
13991398
stream,
14001399
execution: {
14011400
success: true,
1402-
output: { content: accumulated },
1401+
output: { content: '' },
14031402
blockId: data.blockId,
14041403
} as any,
14051404
}

0 commit comments

Comments
 (0)