diff --git a/layout.html b/layout.html index 5bd7b98..599aacb 100644 --- a/layout.html +++ b/layout.html @@ -616,7 +616,7 @@ }); const init_schedules = (day) => { - const day_of_schedule = new Date(Date.parse(day)) || new Date(); + const day_of_schedule = day ? new Date(Date.parse(day)) : new Date(); console.dir(day); console.dir(day_of_schedule);