Skip to content

Commit

Permalink
ref(ui): Swtich to useLocation from useRouter in useMonitorStats (#83395
Browse files Browse the repository at this point in the history
)
  • Loading branch information
evanpurkhiser authored Jan 14, 2025
1 parent d22b874 commit 6c17435
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions static/app/views/monitors/utils/useMonitorStats.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {TimeWindowConfig} from 'sentry/components/checkInTimeline/types';
import {useApiQuery} from 'sentry/utils/queryClient';
import {useLocation} from 'sentry/utils/useLocation';
import useOrganization from 'sentry/utils/useOrganization';
import useRouter from 'sentry/utils/useRouter';

import type {MonitorBucket} from '../types';

Expand Down Expand Up @@ -32,8 +32,7 @@ export function useMonitorStats({monitors, timeWindowConfig}: Options) {
};

const organization = useOrganization();
const router = useRouter();
const location = router.location;
const location = useLocation();

const monitorStatsQueryKey = `/organizations/${organization.slug}/monitors-stats/`;

Expand Down

0 comments on commit 6c17435

Please sign in to comment.