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

Function handleCreate

src/features/workflows/components/workflows.tsx:57–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 const { handleError, modal } = useUpgradeModal();
56
57 const handleCreate = () => {
58 createWorkflow.mutate(undefined, {
59 onSuccess: (data) => {
60 router.push(`/workflows/${data.id}`);
61 },
62 onError: (error) => {
63 handleError(error);
64 },
65 });
66 }
67
68 return (
69 <>

Callers

nothing calls this directly

Calls 1

handleErrorFunction · 0.85

Tested by

no test coverage detected