From 8dee48756b2f2d3569aa16c1052cb76ddded8153 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Sat, 30 Jul 2022 15:40:43 +0530 Subject: [PATCH] chore/gui-v2-date-picker-cleanup --- packages/nc-gui-v2/components/cell/DatePicker.vue | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/nc-gui-v2/components/cell/DatePicker.vue b/packages/nc-gui-v2/components/cell/DatePicker.vue index ade1685a94..d9e8ced082 100644 --- a/packages/nc-gui-v2/components/cell/DatePicker.vue +++ b/packages/nc-gui-v2/components/cell/DatePicker.vue @@ -33,11 +33,6 @@ const localState = $computed({ return /^\d+$/.test(modelValue) ? dayjs(+modelValue) : dayjs(modelValue) }, set(val?: dayjs.Dayjs) { - if (!val && !columnMeta?.rqd) { - emit('update:modelValue', null) - return - } - if (val?.isValid()) { emit('update:modelValue', val?.format('YYYY-MM-DD')) }