File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
static/app/components/events/groupingInfo Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { useEventGroupingInfo } from 'sentry/components/events/groupingInfo/useEventGroupingInfo' ;
2
+ import Placeholder from 'sentry/components/placeholder' ;
2
3
import { t } from 'sentry/locale' ;
3
4
import type { Event } from 'sentry/types/event' ;
4
5
import type { Group } from 'sentry/types/group' ;
@@ -12,7 +13,7 @@ export function GroupInfoSummary({
12
13
group : Group | undefined ;
13
14
projectSlug : string ;
14
15
} ) {
15
- const { groupInfo} = useEventGroupingInfo ( {
16
+ const { groupInfo, isPending , hasPerformanceGrouping } = useEventGroupingInfo ( {
16
17
event,
17
18
group,
18
19
projectSlug,
@@ -26,6 +27,10 @@ export function GroupInfoSummary({
26
27
. join ( ', ' )
27
28
: t ( 'nothing' ) ;
28
29
30
+ if ( isPending && ! hasPerformanceGrouping ) {
31
+ return < Placeholder height = "20px" style = { { marginBottom : '20px' } } /> ;
32
+ }
33
+
29
34
return (
30
35
< p data-test-id = "loaded-grouping-info" >
31
36
< strong > { t ( 'Grouped by:' ) } </ strong > { groupedBy }
You can’t perform that action at this time.
0 commit comments