fix: set default value instead undefined
All checks were successful
Build and Deploy Angular App / build (push) Successful in 1m52s

This commit is contained in:
Polianin Nikita 2024-08-27 22:48:42 +03:00
parent ebf1066610
commit 49179d2a8a

View File

@ -46,6 +46,8 @@ export class ScheduleComponent {
constructor(api: ScheduleService) { constructor(api: ScheduleService) {
this.startTerm = new Date(1, 1, 1); this.startTerm = new Date(1, 1, 1);
this.startWeek = new Date(1, 1, 1);
api.pairPeriod().subscribe(date => { api.pairPeriod().subscribe(date => {
this.pairPeriods = date; this.pairPeriods = date;
}); });