diff --git a/ui/admin/app/routes/_auth.threads.$id.tsx b/ui/admin/app/routes/_auth.threads.$id.tsx index 22c05656..b19ffaef 100644 --- a/ui/admin/app/routes/_auth.threads.$id.tsx +++ b/ui/admin/app/routes/_auth.threads.$id.tsx @@ -1,11 +1,11 @@ import { ArrowLeftIcon } from "lucide-react"; import { ClientLoaderFunctionArgs, - Link, MetaFunction, redirect, useLoaderData, useMatch, + useNavigate, } from "react-router"; import { $path } from "safe-routes"; @@ -82,6 +82,7 @@ export default function ChatAgent() { const entity = getEntity(); + const navigate = useNavigate(); return (
@@ -92,9 +93,13 @@ export default function ChatAgent() { asChild > - + Go Back