Skip to content

Commit

Permalink
[APM] Use history.replace to preserve back-button functionality (#7…
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv authored Oct 2, 2020
1 parent b01140f commit ea6bec6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function useTransactionDistribution(urlParams: IUrlParams) {

const preferredSample = maybe(bucketsSortedByCount[0]?.samples[0]);

history.push({
history.replace({
...history.location,
search: fromQuery({
...omit(toQuery(history.location.search), [
Expand Down

0 comments on commit ea6bec6

Please sign in to comment.