From edee6f20adf6a87be691b34825f947bd2e5b75dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Barbeau?= Date: Wed, 17 Oct 2018 12:46:20 -0400 Subject: [PATCH] fix(time-filter): take current date if min is not defined --- .../lib/filter/time-filter-form/time-filter-form.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/geo/src/lib/filter/time-filter-form/time-filter-form.component.ts b/projects/geo/src/lib/filter/time-filter-form/time-filter-form.component.ts index 4d242afdd2..4dd313b851 100644 --- a/projects/geo/src/lib/filter/time-filter-form/time-filter-form.component.ts +++ b/projects/geo/src/lib/filter/time-filter-form/time-filter-form.component.ts @@ -276,7 +276,7 @@ export class TimeFilterFormComponent implements OnInit { } handleSliderValue(): number { - if (this.options.current === true) { + if (this.options.current === true || !this.min) { const currentDate = new Date(); this.date = this.getRoundedDate(currentDate); }