MCPcopy
hub / github.com/electerm/electerm / remove

Function remove

src/client/components/rdp/resolution-edit.jsx:9–16  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

7
8export default function Resolutions (props) {
9 function remove (id) {
10 const { resolutions } = window.store
11 const index = resolutions.findIndex(d => d.id === id)
12 if (index < 0) {
13 return
14 }
15 resolutions.splice(index, 1)
16 }
17
18 function submit (data) {
19 const { resolutions } = window.store

Callers 3

renderItemFunction · 0.50
on-tree-drop.jsFile · 0.50
renderItemFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected