MCPcopy Index your code
hub / github.com/codeaashu/claude-code / updateValidationError

Function updateValidationError

src/components/mcp/ElicitationDialog.tsx:345–357  ·  view source on GitHub ↗
(fieldName_1: string, error?: string)

Source from the content-addressed store, hash-verified

343 }
344 }
345 function updateValidationError(fieldName_1: string, error?: string) {
346 setValidationErrors(prev_0 => {
347 const next_0 = {
348 ...prev_0
349 };
350 if (error) {
351 next_0[fieldName_1] = error;
352 } else {
353 delete next_0[fieldName_1];
354 }
355 return next_0;
356 });
357 }
358 function unsetField(fieldName_2: string) {
359 if (!fieldName_2) return;
360 setField(fieldName_2, undefined);

Callers 6

validateMultiSelectFunction · 0.85
setFieldFunction · 0.85
unsetFieldFunction · 0.85
commitTextFieldFunction · 0.85
resolveFieldAsyncFunction · 0.85
ElicitationFormDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected