MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / updateOptions

Function updateOptions

ui/src/components/guards.tsx:100–102  ·  view source on GitHub ↗
(idx: number, options: Record<string, unknown>)

Source from the content-addressed store, hash-verified

98 }
99
100 const updateOptions = (idx: number, options: Record<string, unknown>) => {
101 onChange(guards.map((g, i) => (i === idx ? { ...g, options } : g)))
102 }
103
104 const availableTypes = guardTypes.filter((t) => !guards.some((g) => g.type === t.type))
105

Callers 1

GuardsSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected