MCPcopy Create free account
hub / github.com/CodeFox-Repo/codefox / onSubmit

Function onSubmit

frontend/src/components/settings/settings.tsx:82–86  ·  view source on GitHub ↗
(values: z.infer<typeof formSchema>)

Source from the content-addressed store, hash-verified

80 useEffect(() => setValue(current ?? ''), [current]);
81
82 const commit = async () => {
83 const next = value.trim();
84 if (saving || !next || next === current) {
85 setValue(current ?? '');
86 return;
87 }
88 setSaving(true);
89 try {

Callers 1

handleSubmitFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected