File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
static/app/components/events/groupingInfo Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export function GroupInfoSummary({
3030 . join ( ', ' )
3131 : t ( 'nothing' ) ;
3232
33- const groupingConfig = showGroupingConfig && groupInfo ?. grouping_config ?. id ;
33+ const groupingConfig = showGroupingConfig && groupInfo ?. grouping_config ;
3434
3535 if ( isPending && ! hasPerformanceGrouping ) {
3636 return (
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import {t} from 'sentry/locale';
22import {
33 EventGroupVariantType ,
44 type Event ,
5- type EventGroupingConfig ,
65 type EventGroupVariant ,
76} from 'sentry/types/event' ;
87import type { Group } from 'sentry/types/group' ;
@@ -11,7 +10,7 @@ import useOrganization from 'sentry/utils/useOrganization';
1110
1211type EventGroupingInfoResponseOld = Record < string , EventGroupVariant > ;
1312type EventGroupingInfoResponse = {
14- grouping_config : EventGroupingConfig | null ;
13+ grouping_config : string | null ;
1514 variants : Record < string , EventGroupVariant > ;
1615} ;
1716
@@ -20,8 +19,11 @@ function eventGroupingInfoResponseOldToNew(
2019 old : EventGroupingInfoResponseOld | null
2120) : EventGroupingInfoResponse | null {
2221 const grouping_config = old
23- ? ( Object . values ( old ) . find ( variant => 'config' in variant && variant . config ) as any )
24- ?. config
22+ ? (
23+ Object . values ( old ) . find (
24+ variant => 'config' in variant && variant . config ?. id
25+ ) as any
26+ ) ?. config ?. id
2527 : null ;
2628 return old
2729 ? {
You can’t perform that action at this time.
0 commit comments