From c6aaffe77acf4575819ed67b7aa87edc592d4cf6 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 17 Nov 2021 17:30:29 +0300 Subject: [PATCH] refactor view date --- src/components/calendar/Calendar.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index bdffa8587..4952c4c00 100755 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -2186,15 +2186,11 @@ export default { computed: { viewDate() { let propValue = this.modelValue; - if (typeof propValue === 'string') { - return new Date(); - } - if (propValue && Array.isArray(propValue)) { propValue = propValue[0]; } - if (propValue) { + if (propValue && typeof propValue !== 'string') { return propValue; } else {