File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
static/app/components/group Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import Link from 'sentry/components/links/link';
10
10
import { t } from 'sentry/locale' ;
11
11
import { space } from 'sentry/styles/space' ;
12
12
import type { Group } from 'sentry/types/group' ;
13
+ import { useLocation } from 'sentry/utils/useLocation' ;
13
14
import useOrganization from 'sentry/utils/useOrganization' ;
14
15
15
16
interface IssueSeerBadgeProps {
@@ -19,6 +20,7 @@ interface IssueSeerBadgeProps {
19
20
function IssueSeerBadge ( { group} : IssueSeerBadgeProps ) {
20
21
const organization = useOrganization ( ) ;
21
22
const issuesPath = `/organizations/${ organization . slug } /issues/` ;
23
+ const location = useLocation ( ) ;
22
24
23
25
const autofixRunExists = getAutofixRunExists ( group ) ;
24
26
const seerFixable = isIssueQuickFixable ( group ) ;
@@ -42,7 +44,12 @@ function IssueSeerBadge({group}: IssueSeerBadgeProps) {
42
44
43
45
return (
44
46
< Tooltip title = { seerTitle } skipWrapper >
45
- < SeerLink to = { { pathname : `${ issuesPath } ${ group . id } ` , query : { seerDrawer : true } } } >
47
+ < SeerLink
48
+ to = { {
49
+ pathname : `${ issuesPath } ${ group . id } ` ,
50
+ query : { ...location . query , seerDrawer : true } ,
51
+ } }
52
+ >
46
53
< SeerIcon size = "sm" />
47
54
{ seerFixable && < p > { t ( 'Quick Fix' ) } </ p > }
48
55
</ SeerLink >
You can’t perform that action at this time.
0 commit comments