Skip to content

Commit

Permalink
ref(browserHistory): Remove from exclusiveTimeTimeSeries (#82606)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser authored Jan 2, 2025
1 parent f73f705 commit dc0a809
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ import QuestionTooltip from 'sentry/components/questionTooltip';
import {IconWarning} from 'sentry/icons';
import {t} from 'sentry/locale';
import type {Organization} from 'sentry/types/organization';
import {browserHistory} from 'sentry/utils/browserHistory';
import {getUtcToLocalDateObject} from 'sentry/utils/dates';
import {axisLabelFormatter, tooltipFormatter} from 'sentry/utils/discover/charts';
import type EventView from 'sentry/utils/discover/eventView';
import getDynamicText from 'sentry/utils/getDynamicText';
import type {SpanSlug} from 'sentry/utils/performance/suspectSpans/types';
import useApi from 'sentry/utils/useApi';
import {useLocation} from 'sentry/utils/useLocation';
import {useNavigate} from 'sentry/utils/useNavigate';

import {getExclusiveTimeDisplayedValue} from '../utils';

Expand All @@ -34,6 +34,7 @@ type Props = {
};

export default function ExclusiveTimeTimeSeries(props: Props) {
const navigate = useNavigate();
const location = useLocation();
const {organization, eventView, spanSlug, withoutZerofill} = props;

Expand Down Expand Up @@ -69,7 +70,7 @@ export default function ExclusiveTimeTimeSeries(props: Props) {
unselectedSeries: unselected,
},
};
browserHistory.push(to);
navigate(to);
};

return (
Expand Down

0 comments on commit dc0a809

Please sign in to comment.