Skip to content

Commit 1504d13

Browse files
Remove error
1 parent d1e155f commit 1504d13

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

client/src/components/ToolsTab.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
1+
import { Alert, AlertDescription } from "@/components/ui/alert";
22
import { Button } from "@/components/ui/button";
33
import { Checkbox } from "@/components/ui/checkbox";
44
import { Input } from "@/components/ui/input";
@@ -13,7 +13,7 @@ import {
1313
ListToolsResult,
1414
Tool,
1515
} from "@modelcontextprotocol/sdk/types.js";
16-
import { AlertCircle, Send } from "lucide-react";
16+
import { Send } from "lucide-react";
1717
import { useEffect, useState } from "react";
1818
import ListPane from "./ListPane";
1919
import JsonView from "./JsonView";
@@ -27,7 +27,6 @@ const ToolsTab = ({
2727
setSelectedTool,
2828
toolResult,
2929
nextCursor,
30-
error,
3130
}: {
3231
tools: Tool[];
3332
listTools: () => void;
@@ -251,13 +250,6 @@ const ToolsTab = ({
251250
Run Tool
252251
</Button>
253252
{toolResult && renderToolResult()}
254-
{error && (
255-
<Alert variant="destructive">
256-
<AlertCircle className="h-4 w-4" />
257-
<AlertTitle>Error</AlertTitle>
258-
<AlertDescription>{error}</AlertDescription>
259-
</Alert>
260-
)}
261253
</div>
262254
) : (
263255
<Alert>

0 commit comments

Comments
 (0)