MCPcopy Index your code
hub / github.com/simstudioai/sim / cloneWorkflowState

Function cloneWorkflowState

apps/sim/stores/workflow-diff/utils.ts:22–30  ·  view source on GitHub ↗
(state: WorkflowState)

Source from the content-addressed store, hash-verified

20export const WORKFLOW_DIFF_SETTLED_EVENT = 'workflow-diff-settled'
21
22export function cloneWorkflowState(state: WorkflowState): WorkflowState {
23 return {
24 ...state,
25 blocks: structuredClone(state.blocks || {}),
26 edges: structuredClone(state.edges || []),
27 loops: structuredClone(state.loops || {}),
28 parallels: structuredClone(state.parallels || {}),
29 }
30}
31
32export function extractSubBlockValues(
33 workflowState: WorkflowState

Callers 4

store.tsFile · 0.90
captureBaselineSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected