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")); }