File tree 3 files changed +6
-2
lines changed
views/issueDetails/streamline
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import {useQuery} from '@tanstack/react-query';
4
4
import Placeholder from 'sentry/components/placeholder' ;
5
5
import { t } from 'sentry/locale' ;
6
6
import type { LoadableChartWidgetProps } from 'sentry/views/insights/common/components/widgets/types' ;
7
+ import { EVENT_GRAPH_WIDGET_ID } from 'sentry/views/issueDetails/streamline/eventGraphWidget' ;
7
8
8
9
interface Props extends LoadableChartWidgetProps {
9
10
/**
@@ -27,7 +28,7 @@ export function ChartWidgetLoader(props: Props) {
27
28
const query = useQuery < { default : React . FC < LoadableChartWidgetProps > } > ( {
28
29
queryKey : [ `widget-${ props . id } ` ] ,
29
30
queryFn : ( ) => {
30
- if ( props . id === 'issuesEventGraph' ) {
31
+ if ( props . id === EVENT_GRAPH_WIDGET_ID ) {
31
32
return import ( 'sentry/views/issueDetails/streamline/eventGraphWidget' ) ;
32
33
}
33
34
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ import useOrganization from 'sentry/utils/useOrganization';
38
38
import { useReleaseStats } from 'sentry/utils/useReleaseStats' ;
39
39
import { getBucketSize } from 'sentry/views/dashboards/utils/getBucketSize' ;
40
40
import { useIssueDetails } from 'sentry/views/issueDetails/streamline/context' ;
41
+ import { EVENT_GRAPH_WIDGET_ID } from 'sentry/views/issueDetails/streamline/eventGraphWidget' ;
41
42
import useFlagSeries from 'sentry/views/issueDetails/streamline/hooks/featureFlags/useFlagSeries' ;
42
43
import { useCurrentEventMarklineSeries } from 'sentry/views/issueDetails/streamline/hooks/useEventMarkLineSeries' ;
43
44
import {
@@ -282,7 +283,7 @@ export function EventGraph({
282
283
releaseBubbleXAxis,
283
284
releaseBubbleGrid,
284
285
} = useReleaseBubbles ( {
285
- chartId : 'issuesEventGraph' ,
286
+ chartId : EVENT_GRAPH_WIDGET_ID ,
286
287
alignInMiddle : true ,
287
288
legendSelected : legendSelected . Releases ,
288
289
desiredBuckets : eventSeries . length ,
Original file line number Diff line number Diff line change @@ -54,3 +54,5 @@ export default function EventGraphWidget({pageFilters}: LoadableChartWidgetProps
54
54
const Container = styled ( 'div' ) `
55
55
height: 100%;
56
56
` ;
57
+
58
+ export const EVENT_GRAPH_WIDGET_ID = 'event-graph-widget' ;
You can’t perform that action at this time.
0 commit comments