File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import type {Group} from 'sentry/types/group';
21
21
import type { Organization } from 'sentry/types/organization' ;
22
22
import { defined } from 'sentry/utils' ;
23
23
import { getTitle } from 'sentry/utils/events' ;
24
+ import useReplayCountForIssues from 'sentry/utils/replayCount/useReplayCountForIssues' ;
24
25
import { projectCanLinkToReplay } from 'sentry/utils/replays/projectSupportsReplay' ;
25
26
import withOrganization from 'sentry/utils/withOrganization' ;
26
27
@@ -74,10 +75,13 @@ function EventOrGroupExtraDetails({
74
75
} = data as Group ;
75
76
76
77
const issuesPath = `/organizations/${ organization . slug } /issues/` ;
78
+ const { getReplayCountForIssue} = useReplayCountForIssues ( ) ;
77
79
78
80
const showReplayCount =
79
81
organization . features . includes ( 'session-replay' ) &&
80
- projectCanLinkToReplay ( organization , project ) ;
82
+ projectCanLinkToReplay ( organization , project ) &&
83
+ data . issueCategory &&
84
+ ! ! getReplayCountForIssue ( data . id , data . issueCategory ) ;
81
85
82
86
const hasNewLayout = organization . features . includes ( 'issue-stream-table-layout' ) ;
83
87
const { subtitle} = getTitle ( data ) ;
You can’t perform that action at this time.
0 commit comments