MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / remove

Function remove

packages/react/src/components/placement-editor.tsx:47–48  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

45 onChange(placements.map((p: Placement, j: number) => (j === index ? { ...p, ...patch } : p)));
46
47 const remove = (index: number): void =>
48 onChange(placements.filter((_p: Placement, j: number) => j !== index));
49
50 // A non-empty prefix with no trailing space is sent JOINED to the credential
51 // (e.g. "Bearer" + token -> "Bearertoken"). Almost always a mistake: warn.

Callers 1

PlacementEditorFunction · 0.70

Calls 1

onChangeFunction · 0.50

Tested by

no test coverage detected