MCPcopy Create free account
hub / github.com/anomalyco/opencode / resetAdd

Function resetAdd

packages/app/src/components/dialog-select-server.tsx:223–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 })
222
223 const resetAdd = () => {
224 setStore("addServer", {
225 url: "",
226 name: "",
227 username: DEFAULT_USERNAME,
228 password: "",
229 error: "",
230 showForm: false,
231 status: undefined,
232 })
233 }
234 const resetEdit = () => {
235 setStore("editServer", {
236 id: undefined,

Callers 3

resetFormFunction · 0.85
startEditFunction · 0.85

Calls 1

setStoreFunction · 0.85

Tested by

no test coverage detected