MCPcopy Create free account
hub / github.com/SplootCode/splootcode / setValue

Function setValue

packages/editor/src/components/test_request_panel.tsx:51–58  ·  view source on GitHub ↗
(key: string, newValue: string)

Source from the content-addressed store, hash-verified

49 }, [currentScenario])
50
51 const setValue = (key: string, newValue: string) => {
52 const newScenario = { ...editingScenario }
53 newScenario[key] = newValue
54 setEditingScenario(newScenario)
55 if (key === 'method') {
56 saveScenario(newScenario)
57 }
58 }
59
60 return (
61 <>

Callers 1

RequestScenarioEditFunction · 0.85

Calls 1

saveScenarioFunction · 0.85

Tested by

no test coverage detected