Browse Source

fix(nocodb): add missing ? to col.meta

pull/6870/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
4d44c63383
  1. 4
      packages/nocodb/src/db/BaseModelSqlv2.ts

4
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -4511,8 +4511,8 @@ class BaseModelSqlv2 {
}
if (col.uidt === UITypes.Date) {
const dateFormat = col.meta.date_format;
if (isDateMonthFormat(dateFormat)) {
const dateFormat = col.meta?.date_format;
if (dateFormat && isDateMonthFormat(dateFormat)) {
d[col.title] = dayjs(d[col.title], dateFormat).format(dateFormat);
}
continue;

Loading…
Cancel
Save