mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-05 12:14:59 -05:00
Compare commits
7 Commits
staging
...
fix/onedri
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
60053a0dd7 | ||
|
|
5f719b3746 | ||
|
|
5fde0bd941 | ||
|
|
9e22d4aaa9 | ||
|
|
994224322a | ||
|
|
a02102345e | ||
|
|
e256261d53 |
@@ -1288,13 +1288,6 @@ export function useWorkflowExecution() {
|
||||
onBlockCompleteCallback: onBlockComplete,
|
||||
})
|
||||
|
||||
const clientWorkflowState = executionWorkflowState || {
|
||||
blocks: filteredStates,
|
||||
edges: workflowEdges,
|
||||
loops: latestWorkflowState.loops,
|
||||
parallels: latestWorkflowState.parallels,
|
||||
}
|
||||
|
||||
await executionStream.execute({
|
||||
workflowId: activeWorkflowId,
|
||||
input: finalWorkflowInput,
|
||||
@@ -1304,12 +1297,14 @@ export function useWorkflowExecution() {
|
||||
useDraftState: true,
|
||||
isClientSession: true,
|
||||
stopAfterBlockId,
|
||||
workflowStateOverride: {
|
||||
blocks: clientWorkflowState.blocks,
|
||||
edges: clientWorkflowState.edges,
|
||||
loops: clientWorkflowState.loops,
|
||||
parallels: clientWorkflowState.parallels,
|
||||
},
|
||||
workflowStateOverride: executionWorkflowState
|
||||
? {
|
||||
blocks: executionWorkflowState.blocks,
|
||||
edges: executionWorkflowState.edges,
|
||||
loops: executionWorkflowState.loops,
|
||||
parallels: executionWorkflowState.parallels,
|
||||
}
|
||||
: undefined,
|
||||
callbacks: {
|
||||
onExecutionStarted: (data) => {
|
||||
logger.info('Server execution started:', data)
|
||||
|
||||
Reference in New Issue
Block a user