()
| 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"> |