From 508f91a97be43379c49ca91d6fd212b620770d25 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 22 Nov 2025 15:03:37 +0100 Subject: [PATCH] fix: initialize date ref with null instead of undefined in Datepicker.vue --- frontend/src/components/input/Datepicker.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/input/Datepicker.vue b/frontend/src/components/input/Datepicker.vue index 649a2d1e6..b3f55888c 100644 --- a/frontend/src/components/input/Datepicker.vue +++ b/frontend/src/components/input/Datepicker.vue @@ -5,7 +5,7 @@ :disabled="disabled || undefined" @click.stop="toggleDatePopup" > - {{ date === null || date === undefined ? chooseDateLabel : formatDisplayDate(date) }} + {{ date === null ? chooseDateLabel : formatDisplayDate(date) }} @@ -15,7 +15,7 @@ class="datepicker-popup" > @@ -62,7 +62,7 @@ const emit = defineEmits<{ 'closeOnChange': [value: boolean], }>() -const date = ref() +const date = ref(null) const show = ref(false) const changed = ref(false)