(newServerId)
| 180 | } |
| 181 | |
| 182 | const onCustomMcpCreated = async (newServerId) => { |
| 183 | refreshCustomMcp(mcpCurrentPage, mcpPageLimit) |
| 184 | try { |
| 185 | const resp = await customMcpServersApi.getCustomMcpServer(newServerId) |
| 186 | setMcpDialogProps({ type: 'EDIT', data: resp.data ?? { id: newServerId } }) |
| 187 | } catch { |
| 188 | setMcpDialogProps({ type: 'EDIT', data: { id: newServerId } }) |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | const [search, setSearch] = useState('') |
| 193 | const onSearchChange = (event) => { |
nothing calls this directly
no test coverage detected