Skip to content

Commit

Permalink
ref(browserHistory): Remove from domainSelector (#82631)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser authored Jan 2, 2025
1 parent be7500e commit 70e4db5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import {CompactSelect, type SelectOption} from 'sentry/components/compactSelect'
import {t} from 'sentry/locale';
import {trackAnalytics} from 'sentry/utils/analytics';
import {uniq} from 'sentry/utils/array/uniq';
import {browserHistory} from 'sentry/utils/browserHistory';
import EventView from 'sentry/utils/discover/eventView';
import {DiscoverDatasets} from 'sentry/utils/discover/types';
import {EMPTY_OPTION_VALUE} from 'sentry/utils/tokenizeSearch';
import {useLocation} from 'sentry/utils/useLocation';
import {useNavigate} from 'sentry/utils/useNavigate';
import useOrganization from 'sentry/utils/useOrganization';
import usePageFilters from 'sentry/utils/usePageFilters';
import {useSpansQuery} from 'sentry/views/insights/common/queries/useSpansQuery';
Expand Down Expand Up @@ -45,6 +45,7 @@ export function DomainSelector({
emptyOptionLocation = 'bottom',
domainAlias,
}: Props) {
const navigate = useNavigate();
const location = useLocation();
const organization = useOrganization();
const pageFilters = usePageFilters();
Expand Down Expand Up @@ -156,7 +157,7 @@ export function DomainSelector({
organization,
source: moduleName,
});
browserHistory.push({
navigate({
...location,
query: {
...location.query,
Expand Down

0 comments on commit 70e4db5

Please sign in to comment.