From 6b05ffa7b1f518e3627f1544819a96cda2ffc241 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Fri, 18 Oct 2024 16:44:10 -0700 Subject: [PATCH] add a way to clear error --- client/src/App.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/client/src/App.tsx b/client/src/App.tsx index 1a16682..7106a3f 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -23,6 +23,7 @@ import { MessageSquare, Hammer, Play, + X, } from "lucide-react"; import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Input } from "@/components/ui/input"; @@ -223,6 +224,10 @@ const App = () => { } }; + const clearError = () => { + setError(null); + }; + return (
@@ -272,6 +277,15 @@ const App = () => { Connect
+ {error && ( +
+

{error}

+ +
+ )} {mcpClient ? (