Skip to content

Commit b24f119

Browse files
committed
added batch add edges
1 parent f00a7a0 commit b24f119

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/sim/hooks/use-collaborative-workflow.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,13 @@ export function useCollaborativeWorkflow() {
315315
}
316316
break
317317
}
318+
case 'batch-add-edges': {
319+
const { edges } = payload
320+
if (Array.isArray(edges)) {
321+
edges.forEach((edge: Edge) => workflowStore.addEdge(edge))
322+
}
323+
break
324+
}
318325
}
319326
} else if (target === 'subflow') {
320327
switch (operation) {

0 commit comments

Comments
 (0)