Skip to content

Commit de14b90

Browse files
committed
normalize datetime selection for the events chart
1 parent 7778f8a commit de14b90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/sentry/static/sentry/app/views/events/eventsChart.jsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import ReleaseSeries from 'app/components/charts/releaseSeries';
1212
import SentryTypes from 'app/sentryTypes';
1313
import withApi from 'app/utils/withApi';
1414
import withGlobalSelection from 'app/utils/withGlobalSelection';
15+
import {getParams} from 'app/views/events/utils/getParams';
1516

1617
import EventsRequest from './utils/eventsRequest';
1718
import YAxisSelector from './yAxisSelector';
@@ -203,9 +204,14 @@ const EventsChartContainer = withGlobalSelection(
203204
const {selection, ...props} = this.props;
204205
const {datetime, projects, environments} = selection;
205206

207+
const {start, end, statsPeriod, utc} = getParams(datetime);
208+
206209
return (
207210
<EventsChart
208-
{...datetime}
211+
start={start}
212+
end={end}
213+
period={statsPeriod}
214+
utc={utc}
209215
projects={projects || []}
210216
environments={environments || []}
211217
{...props}

0 commit comments

Comments
 (0)