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

Function deleteVar

packages/editor/src/components/config_panel.tsx:254–257  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

252 useEffect(() => {}, [updateEnvironmentVars])
253
254 const deleteVar = (name: string) => {
255 project.deleteEnvironmentVar(name)
256 setEnvVars(Object.fromEntries(project.environmentVars))
257 }
258
259 const updateVar = (prevName: string, newName: string, value: string, secret: boolean) => {
260 if (prevName !== newName) {

Callers 1

EnvironmentVarFunction · 0.85

Calls 1

deleteEnvironmentVarMethod · 0.80

Tested by

no test coverage detected