diff --git a/src/lib/filter/time-filter-form/time-filter-form.component.ts b/src/lib/filter/time-filter-form/time-filter-form.component.ts index 813d66f15c..a16e4849f0 100644 --- a/src/lib/filter/time-filter-form/time-filter-form.component.ts +++ b/src/lib/filter/time-filter-form/time-filter-form.component.ts @@ -102,8 +102,12 @@ export class TimeFilterFormComponent implements OnInit { constructor() { } ngOnInit() { - this.startDate = new Date(this.min); - this.endDate = new Date(this.max); + if (this.startDate === undefined) { + this.startDate = new Date(this.min); + } + if (this.endDate === undefined) { + this.endDate = new Date(this.max); + } } handleDateChange(event: any) {