Browse Source

fix(nc-gui): validate date with date format from column meta

pull/7580/head
աɨռɢӄաօռɢ 11 months ago
parent
commit
9bf7b1ef09
  1. 2
      packages/nc-gui/composables/useMultiSelect/convertCellData.ts

2
packages/nc-gui/composables/useMultiSelect/convertCellData.ts

@ -56,7 +56,7 @@ export default function convertCellData(
}
return null
case UITypes.Date: {
const parsedDate = dayjs(value)
const parsedDate = dayjs(value, column?.meta?.date_format ?? 'YYYY-MM-DD')
if (!parsedDate.isValid()) {
if (isMultiple) {
return null

Loading…
Cancel
Save