From f0a404b3c1d258a7b77faa89ec2e70ac6841c824 Mon Sep 17 00:00:00 2001 From: Sundog Date: Mon, 9 Sep 2024 11:51:24 -0400 Subject: [PATCH] d --- layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);