File tree 1 file changed +8
-13
lines changed
static/app/views/issueDetails/groupFeatureFlags
1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 1
- import { Fragment , useMemo , useState } from 'react' ;
1
+ import { Fragment , useState } from 'react' ;
2
2
import styled from '@emotion/styled' ;
3
3
4
4
import { useAnalyticsArea } from 'sentry/components/analyticsArea' ;
@@ -36,25 +36,20 @@ export function FlagDetailsDrawerContent() {
36
36
37
37
const sortArrow = < IconArrow color = "gray300" size = "xs" direction = "down" /> ;
38
38
39
- const flagQuery = useMemo ( ( ) => {
40
- return {
41
- flag : tagKey ,
42
- per_page : 50 ,
43
- queryReferrer : 'featureFlagDetailsDrawer' ,
44
- statsPeriod : '90d' ,
45
- sort : '-created_at' ,
46
- cursor : location . query . flagDrawerCursor ,
47
- } ;
48
- } , [ tagKey , location . query . flagDrawerCursor ] ) ;
49
-
50
39
const {
51
40
data : flagLog ,
52
41
isPending,
53
42
isError,
54
43
getResponseHeader,
55
44
} = useOrganizationFlagLog ( {
56
45
organization,
57
- query : flagQuery ,
46
+ query : {
47
+ flag : tagKey ,
48
+ per_page : 50 ,
49
+ queryReferrer : 'featureFlagDetailsDrawer' ,
50
+ sort : '-created_at' ,
51
+ cursor : location . query . flagDrawerCursor ,
52
+ } ,
58
53
} ) ;
59
54
const pageLinks = getResponseHeader ?.( 'Link' ) ?? null ;
60
55
You can’t perform that action at this time.
0 commit comments