(value: string = 'plugin', index: any, item1: any)
| 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 | } |