From b144802203dd23bd5024da50cee4f27bbfe1b5d7 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 27 Feb 2022 16:39:21 +0100 Subject: [PATCH] fix: "invalid date" error when trying to set a date and none was set before --- src/components/input/datepicker.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/input/datepicker.vue b/src/components/input/datepicker.vue index d2432295e..f2c9a2a03 100644 --- a/src/components/input/datepicker.vue +++ b/src/components/input/datepicker.vue @@ -183,6 +183,10 @@ export default { this.updateData() }, get() { + if(!this.date) { + return '' + } + return format(this.date, 'yyy-LL-dd H:mm') }, },