From 65d88ffc37fce1030988cb6bbc8fecd159af2fa7 Mon Sep 17 00:00:00 2001 From: Ryan Hopper-Lowe Date: Tue, 7 Jan 2025 10:12:53 -0600 Subject: [PATCH] fix: update thread back button to navigate back in browser history - previously just went back to all threads page --- ui/admin/app/routes/_auth.threads.$id.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ui/admin/app/routes/_auth.threads.$id.tsx b/ui/admin/app/routes/_auth.threads.$id.tsx index 22c056563..b19ffaef7 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