Skip to content

Commit

Permalink
fix(time-filter): take current date if min is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Oct 17, 2018
1 parent 497f15e commit edee6f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit edee6f2

Please sign in to comment.