Skip to content

Commit 22d2dc5

Browse files
committed
fix(tracemetrics): Allow sorting on all aggregate columns
1 parent 39b25a5 commit 22d2dc5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

static/app/views/explore/metrics/metricInfoTabs/aggregatesTab.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ export function AggregatesTab({traceMetric, isMetricOptionsEmpty}: AggregatesTab
250250
}
251251

252252
const direction = sorts.find(s => s.field === field)?.kind;
253-
const canSort =
254-
displayColumns.find(column => column.key === field)?.isSortable !== false;
255253

256254
function updateSort() {
257255
const kind = direction === 'desc' ? 'asc' : 'desc';
@@ -268,7 +266,7 @@ export function AggregatesTab({traceMetric, isMetricOptionsEmpty}: AggregatesTab
268266
}
269267
isSticky={isLastColumn(i)}
270268
sort={direction}
271-
handleSortClick={canSort ? updateSort : undefined}
269+
handleSortClick={updateSort}
272270
>
273271
<Tooltip showOnlyOnOverflow title={label}>
274272
{label}

0 commit comments

Comments
 (0)