fix: back button issue fixed for traces/logs explorer (#3448)

Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
Neelesh Sharma 2023-08-29 20:22:47 +05:30 committed by GitHub
parent 0574350e6e
commit 01312ec286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ const useUrlQueryData = <T>(
urlQuery.set(queryKey, newQuery);
const generatedUrl = `${location.pathname}?${urlQuery.toString()}`;
history.push(generatedUrl);
history.replace(generatedUrl);
},
[history, location, urlQuery, queryKey],
);

View File

@ -492,7 +492,7 @@ export function QueryBuilderProvider({
const generatedUrl = `${location.pathname}?${urlQuery}`;
history.push(generatedUrl);
history.replace(generatedUrl);
},
[history, location.pathname, urlQuery],
);