MCPcopy Create free account
hub / github.com/Botloader/botloader / deleteItem

Function deleteItem

frontend/src/components/GuildScriptPage.tsx:362–366  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

360 }
361
362 function deleteItem(index: number) {
363 const copy = value.map(row => [...row])
364 copy.splice(index, 1)
365 setValue(copy)
366 }
367
368 return <Paper sx={{ marginTop: 3, padding: 1 }} elevation={2}>
369 <Box display={"flex"} justifyContent={"space-between"} alignItems={"start"} gap={1}>

Callers 1

EditSettingsOptionListFunction · 0.85

Calls 1

setValueFunction · 0.85

Tested by

no test coverage detected