Skip to content

Commit 19d8a97

Browse files
committed
change back to string
1 parent bf44c8c commit 19d8a97

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

static/app/components/events/groupingInfo/groupingSummary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 (

static/app/components/events/groupingInfo/useEventGroupingInfo.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {t} from 'sentry/locale';
22
import {
33
EventGroupVariantType,
44
type Event,
5-
type EventGroupingConfig,
65
type EventGroupVariant,
76
} from 'sentry/types/event';
87
import type {Group} from 'sentry/types/group';
@@ -11,7 +10,7 @@ import useOrganization from 'sentry/utils/useOrganization';
1110

1211
type EventGroupingInfoResponseOld = Record<string, EventGroupVariant>;
1312
type 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
? {

0 commit comments

Comments
 (0)