Browse Source

Merge pull request #4611 from nocodb/fix/import-csv-date

fix(nc-gui): parse string date if date is not null
pull/4614/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
fc01ea032f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/components/template/Editor.vue

2
packages/nc-gui/components/template/Editor.vue

@ -431,8 +431,10 @@ async function importTemplate() {
input = null input = null
} }
} else if (v.uidt === UITypes.Date) { } else if (v.uidt === UITypes.Date) {
if (input) {
input = parseStringDate(input, v.meta.date_format) input = parseStringDate(input, v.meta.date_format)
} }
}
res[col.destCn] = input res[col.destCn] = input
} }
return res return res

Loading…
Cancel
Save