Calendar: Avoid JS error from flatpickr on init (provided an invalid date)

This commit is contained in:
nathan 2023-05-02 09:38:33 -06:00
parent e7b340990a
commit cbf47d7156

View File

@ -138,7 +138,7 @@ export class SidemenuDate extends Et2Date
set_value(value) set_value(value)
{ {
if(typeof value !== "string" && value.length == 8) if(typeof value === "string" && value.length == 8)
{ {
super.set_value(parseDate(value, "Ymd")); super.set_value(parseDate(value, "Ymd"));
} }