MCPcopy Create free account
hub / github.com/Microck/opencode-studio / resetForm

Function resetForm

client-next/src/components/add-mcp-dialog.tsx:135–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 const [loading, setLoading] = useState(false);
134
135 const resetForm = () => {
136 setPasteInput("");
137 setName("");
138 setConfigJson(JSON.stringify(buildDefaultConfig(), null, 2));
139 setError("");
140 };
141
142 useEffect(() => {
143 if (!pasteInput.trim()) return;

Callers 4

handleImportFunction · 0.70
BulkImportDialogFunction · 0.70
handleSubmitFunction · 0.70
AddMCPDialogFunction · 0.70

Calls 1

buildDefaultConfigFunction · 0.85

Tested by

no test coverage detected