File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
x-pack/legacy/plugins/reporting
export_types/csv_from_savedobject/server/lib Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export function getFilters(
2222 let timezone : string | null ;
2323
2424 if ( indexPatternTimeField ) {
25- if ( ! timerange ) {
25+ if ( ! timerange || ! timerange . min || ! timerange . max ) {
2626 throw badRequest (
2727 `Time range params are required for index pattern [${ indexPatternId } ], using time field [${ indexPatternTimeField } ]`
2828 ) ;
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ export type ReportingRequestPayload = GenerateExportTypePayload | JobParamPostPa
5454
5555export interface TimeRangeParams {
5656 timezone : string ;
57- min : Date | string | number ;
58- max : Date | string | number ;
57+ min : Date | string | number | null ;
58+ max : Date | string | number | null ;
5959}
6060
6161export interface JobParamPostPayload {
You can’t perform that action at this time.
0 commit comments