From aea6b24a1c586883321de11abd0daf2050ac84d6 Mon Sep 17 00:00:00 2001 From: Nick Mitchell Date: Fri, 21 Feb 2025 10:18:35 -0500 Subject: [PATCH] fix: in react ui, close drawer when switching to a different trace The drawer content will be specific to a trace... Signed-off-by: Nick Mitchell --- pdl-live-react/src/page/Sidebar.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdl-live-react/src/page/Sidebar.tsx b/pdl-live-react/src/page/Sidebar.tsx index 1fda6f53d..bdc09470b 100644 --- a/pdl-live-react/src/page/Sidebar.tsx +++ b/pdl-live-react/src/page/Sidebar.tsx @@ -15,6 +15,11 @@ export default function Sidebar() { const { hash, pathname: activeItem } = useLocation() const [searchParams] = useSearchParams() + searchParams.delete("id") + searchParams.delete("def") + searchParams.delete("get") + searchParams.delete("type") + searchParams.delete("detail") const s = searchParams.toString() const search = (s.length > 0 ? "?" + s : "") + hash