Browse Source

Merge pull request #7580 from nocodb/fix/date-copy

fix(nc-gui): validate date with date format from column meta
pull/7573/head
Raju Udava 10 months ago committed by GitHub
parent
commit
07c7f6af03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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