MCPcopy Create free account
hub / github.com/SensAI-PT/RAGMeUp / handleBoolToggle

Function handleBoolToggle

ui/node-react/client/src/components/ConfigPage.js:421–424  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

419 const displayOriginal = typeof originalValue === 'string' ? originalValue.replace(/^["']|["']$/g, '') : originalValue;
420
421 const handleBoolToggle = () => {
422 const current = displayValue === 'True' || displayValue === 'true';
423 onChange(current ? 'False' : 'True');
424 };
425
426 return (
427 <div className={`config-field ${isEdited ? 'edited' : ''} ${isNew ? 'new-var' : ''}`}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected