MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / handleToolsChange

Function handleToolsChange

frontend/src/components/drawerAssistant/index.tsx:256–267  ·  view source on GitHub ↗
(value: string = 'plugin', index: any, item1: any)

Source from the content-addressed store, hash-verified

254 handleToks(value)
255 }
256 const handleToolsChange = (value: string = 'plugin', index: any, item1: any) => {
257 setSelectedPluginList((prev: any) => {
258 const data = prev.filter((item: any) => item !== item1.value)
259 return data
260 })
261 setPluginActionList(prev => {
262 const newActionFormList = [...prev]
263 newActionFormList[index].type = value
264 newActionFormList[index].value = ''
265 return newActionFormList
266 })
267 }
268 const handleCreateBundle = () => {
269 handleNewBundle()
270 }

Callers 1

index.tsxFile · 0.85

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected