Skip to content

Commit 2b9dd40

Browse files
authored
fix(dashboard-filters): Pass timerange to release request (#38051)
1 parent 881b323 commit 2b9dd40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

static/app/utils/releases/releasesProvider.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {createContext, useContext, useEffect, useState} from 'react';
22

33
import {addErrorMessage} from 'sentry/actionCreators/indicator';
44
import {Client} from 'sentry/api';
5+
import {normalizeDateTimeParams} from 'sentry/components/organizations/pageFilters/parse';
56
import {t} from 'sentry/locale';
67
import {Organization, PageFilters, Release} from 'sentry/types';
78
import handleXhrErrorResponse from 'sentry/utils/handleXhrErrorResponse';
@@ -14,7 +15,7 @@ function fetchReleases(
1415
selection: PageFilters,
1516
search: string
1617
) {
17-
const {environments, projects} = selection;
18+
const {environments, projects, datetime} = selection;
1819

1920
return api.requestPromise(`/organizations/${orgSlug}/releases/`, {
2021
method: 'GET',
@@ -24,6 +25,7 @@ function fetchReleases(
2425
per_page: 50,
2526
environment: environments,
2627
query: search,
28+
...normalizeDateTimeParams(datetime),
2729
},
2830
});
2931
}

0 commit comments

Comments
 (0)