From 20b1f96c195b493a270f564d00d6165e5fa79560 Mon Sep 17 00:00:00 2001 From: Palash Gupta Date: Mon, 3 Apr 2023 13:30:48 +0530 Subject: [PATCH] fix: global time navigation is fixed (#2533) --- frontend/src/container/SideNav/index.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/src/container/SideNav/index.tsx b/frontend/src/container/SideNav/index.tsx index 57d55f3429..acd8d5595e 100644 --- a/frontend/src/container/SideNav/index.tsx +++ b/frontend/src/container/SideNav/index.tsx @@ -29,7 +29,6 @@ function SideNav(): JSX.Element { const [collapsed, setCollapsed] = useState( getLocalStorageKey(IS_SIDEBAR_COLLAPSED) === 'true', ); - const { search } = useLocation(); const { currentVersion, latestVersion, isCurrentVersionError } = useSelector< AppState, AppReducer @@ -48,15 +47,11 @@ function SideNav(): JSX.Element { const onClickHandler = useCallback( (to: string) => { - const queryParams = new URLSearchParams(search); - - const url = queryParams.toString(); - if (pathname !== to) { - history.push(`${to}?${url}`); + history.push(`${to}`); } }, - [pathname, search], + [pathname], ); const onClickSlackHandler = (): void => {