feat: avoid persist for non preset

This commit is contained in:
Ishan Uniyal
2026-03-09 08:51:42 +05:30
parent 467936b1fb
commit b0e7037dd0

View File

@@ -62,13 +62,6 @@ export function useZoomOut(options: UseZoomOutOptions = {}): () => void {
urlQuery.set(QueryParams.startTime, String(newStartMs));
urlQuery.set(QueryParams.endTime, String(newEndMs));
urlQuery.delete(QueryParams.relativeTime);
persistTimeDurationForRoute(
location.pathname,
JSON.stringify({
startTime: newStartMs,
endTime: newEndMs,
}),
);
}
for (const param of urlParamsToDeleteRef.current) {
urlQuery.delete(param);