MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / handleSave

Function handleSave

src/features/editor/components/editor-header.tsx:24–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 const saveWorkflow = useUpdateWorkflow();
23
24 const handleSave = () => {
25 if (!editor) {
26 return;
27 }
28
29 const nodes = editor.getNodes();
30 const edges = editor.getEdges();
31
32 saveWorkflow.mutate({
33 id: workflowId,
34 nodes,
35 edges,
36 });
37 }
38
39 return (
40 <div className="ml-auto">

Callers 1

handleKeyDownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected