From 7b344f7a75b0757a9d00fc9855fa4115e1df8a66 Mon Sep 17 00:00:00 2001 From: Yunus M Date: Fri, 19 Jan 2024 17:01:52 +0530 Subject: [PATCH] Revert "fix: update time stamp on the first load in URL to help with back navigation" (#4398) --- .../src/container/TopNav/DateTimeSelection/index.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/frontend/src/container/TopNav/DateTimeSelection/index.tsx b/frontend/src/container/TopNav/DateTimeSelection/index.tsx index 785f65da8f..c72ff7b82d 100644 --- a/frontend/src/container/TopNav/DateTimeSelection/index.tsx +++ b/frontend/src/container/TopNav/DateTimeSelection/index.tsx @@ -279,18 +279,6 @@ function DateTimeSelection({ setRefreshButtonHidden(updatedTime === 'custom'); updateTimeInterval(updatedTime, [preStartTime, preEndTime]); - - if (updatedTime !== 'custom') { - const { minTime, maxTime } = GetMinMax(updatedTime); - urlQuery.set(QueryParams.startTime, minTime.toString()); - urlQuery.set(QueryParams.endTime, maxTime.toString()); - } else { - urlQuery.set(QueryParams.startTime, preStartTime.toString()); - urlQuery.set(QueryParams.endTime, preEndTime.toString()); - } - const generatedUrl = `${location.pathname}?${urlQuery.toString()}`; - history.replace(generatedUrl); - // eslint-disable-next-line react-hooks/exhaustive-deps }, [location.pathname, updateTimeInterval, globalTimeLoading]);