@@ -14,6 +14,7 @@ import {IconWarning} from 'sentry/icons/iconWarning';
1414import { t } from 'sentry/locale' ;
1515import type { TagCollection } from 'sentry/types/group' ;
1616import { defined } from 'sentry/utils' ;
17+ import { parseCursor } from 'sentry/utils/cursor' ;
1718import { fieldAlignment } from 'sentry/utils/discover/fields' ;
1819import { useLocation } from 'sentry/utils/useLocation' ;
1920import useProjects from 'sentry/utils/useProjects' ;
@@ -43,6 +44,7 @@ import {useTraceItemTags} from 'sentry/views/explore/contexts/spanTagsContext';
4344import type { AggregatesTableResult } from 'sentry/views/explore/hooks/useExploreAggregatesTable' ;
4445import { usePaginationAnalytics } from 'sentry/views/explore/hooks/usePaginationAnalytics' ;
4546import { TOP_EVENTS_LIMIT , useTopEvents } from 'sentry/views/explore/hooks/useTopEvents' ;
47+ import { useQueryParamsAggregateCursor } from 'sentry/views/explore/queryParams/context' ;
4648import { prettifyAggregation , viewSamplesTarget } from 'sentry/views/explore/utils' ;
4749
4850import { FieldRenderer } from './fieldRenderer' ;
@@ -66,6 +68,7 @@ export function AggregatesTable({aggregatesTableResult}: AggregatesTableProps) {
6668 const sorts = useExploreSortBys ( ) ;
6769 const setSorts = useSetExploreSortBys ( ) ;
6870 const query = useExploreQuery ( ) ;
71+ const cursor = useQueryParamsAggregateCursor ( ) ;
6972
7073 const visibleAggregateFields = useMemo (
7174 ( ) =>
@@ -204,7 +207,7 @@ export function AggregatesTable({aggregatesTableResult}: AggregatesTableProps) {
204207 return (
205208 < TableRow key = { i } >
206209 < TableBodyCell >
207- { topEvents && i < topEvents && (
210+ { topEvents && i < topEvents && ! parseCursor ( cursor ) ?. offset && (
208211 < TopResultsIndicator color = { palette [ i ] ! } />
209212 ) }
210213 < Tooltip title = { t ( 'View Samples' ) } containerDisplayMode = "flex" >
0 commit comments