MCPcopy
hub / github.com/dataelement/Clawith / clearFieldError

Function clearFieldError

frontend/src/pages/AgentCreate.tsx:25–25  ·  view source on GitHub ↗
(field: string)

Source from the content-addressed store, hash-verified

23 });
24 // Clear field error when user edits a field
25 const clearFieldError = (field: string) => setFieldErrors(prev => { const n = { ...prev }; delete n[field]; return n; });
26 const [createdApiKey, setCreatedApiKey] = useState('');
27 // Current company (tenant) selection from layout sidebar
28 const [currentTenant] = useState<string | null>(() => localStorage.getItem('current_tenant_id'));

Callers 1

AgentCreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected