bug/825 Fix error message in test report due to wrong date initialization
This commit is contained in:
parent
979f22da2e
commit
f21024cc9a
|
|
@ -15,7 +15,7 @@ export class DatePickerComponent implements OnInit {
|
|||
valueDate: Date;
|
||||
|
||||
ngOnInit(): void {
|
||||
this.valueDate = new Date(this.value);
|
||||
this.valueDate = this.value ? new Date(this.value) : new Date();
|
||||
}
|
||||
|
||||
dateChange(newValue: Date) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue