Browse Source

ref(browserHistory): Remove from spanSummaryTable (#82604)

Evan Purkhiser 2 months ago
parent
commit
2da8db18ca

+ 1 - 2
static/app/views/performance/transactionSummary/transactionSpans/spanSummary/spanSummaryTable.tsx

@@ -14,7 +14,6 @@ import {space} from 'sentry/styles/space';
 import type {Organization} from 'sentry/types/organization';
 import type {Project} from 'sentry/types/project';
 import {defined} from 'sentry/utils';
-import {browserHistory} from 'sentry/utils/browserHistory';
 import EventView, {type MetaType} from 'sentry/utils/discover/eventView';
 import {getFieldRenderer} from 'sentry/utils/discover/fieldRenderers';
 import type {ColumnType} from 'sentry/utils/discover/fields';
@@ -200,7 +199,7 @@ export default function SpanSummaryTable(props: Props) {
     }) ?? [];
 
   const handleCursor: CursorHandler = (cursor, pathname, query) => {
-    browserHistory.push({
+    navigate({
       pathname,
       query: {...query, [QueryParameterNames.SPANS_CURSOR]: cursor},
     });