From cbf47d7156871da632eda7a3c89db94f0af376b5 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 2 May 2023 09:38:33 -0600 Subject: [PATCH] Calendar: Avoid JS error from flatpickr on init (provided an invalid date) --- calendar/js/SidemenuDate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/SidemenuDate.ts b/calendar/js/SidemenuDate.ts index b007578db0..7c293338b9 100644 --- a/calendar/js/SidemenuDate.ts +++ b/calendar/js/SidemenuDate.ts @@ -138,7 +138,7 @@ export class SidemenuDate extends Et2Date set_value(value) { - if(typeof value !== "string" && value.length == 8) + if(typeof value === "string" && value.length == 8) { super.set_value(parseDate(value, "Ymd")); }