Skip to content

Commit

Permalink
ref(browserHistory): Remove from transactionEvents (#82630)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser authored Jan 2, 2025
1 parent 70e4db5 commit 99ce1e9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {t} from 'sentry/locale';
import type {Organization} from 'sentry/types/organization';
import type {Project} from 'sentry/types/project';
import {trackAnalytics} from 'sentry/utils/analytics';
import {browserHistory} from 'sentry/utils/browserHistory';
import DiscoverQuery from 'sentry/utils/discover/discoverQuery';
import EventView from 'sentry/utils/discover/eventView';
import {
Expand All @@ -18,6 +17,7 @@ import {WebVital} from 'sentry/utils/fields';
import {removeHistogramQueryStrings} from 'sentry/utils/performance/histogram';
import {decodeScalar} from 'sentry/utils/queryString';
import {MutableSearch} from 'sentry/utils/tokenizeSearch';
import {useNavigate} from 'sentry/utils/useNavigate';
import withOrganization from 'sentry/utils/withOrganization';
import withProjects from 'sentry/utils/withProjects';

Expand Down Expand Up @@ -75,6 +75,7 @@ function EventsContentWrapper(props: ChildProps) {
projectId,
projects,
} = props;
const navigate = useNavigate();
const eventsDisplayFilterName = decodeEventsDisplayFilterFromLocation(location);
const spanOperationBreakdownFilter = decodeFilterFromLocation(location);
const webVital = getWebVital(location);
Expand Down Expand Up @@ -126,7 +127,7 @@ function EventsContentWrapper(props: ChildProps) {
if (newFilter === SpanOperationBreakdownFilter.NONE) {
delete nextQuery.breakdown;
}
browserHistory.push({
navigate({
pathname: location.pathname,
query: nextQuery,
});
Expand All @@ -150,7 +151,7 @@ function EventsContentWrapper(props: ChildProps) {
delete nextQuery.showTransaction;
}

browserHistory.push({
navigate({
pathname: location.pathname,
query: nextQuery,
});
Expand Down

0 comments on commit 99ce1e9

Please sign in to comment.