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) { if (col.uidt === UITypes.Date) {
const dateFormat = col.meta.date_format; const dateFormat = col.meta?.date_format;
if (isDateMonthFormat(dateFormat)) { if (dateFormat && isDateMonthFormat(dateFormat)) {
d[col.title] = dayjs(d[col.title], dateFormat).format(dateFormat); d[col.title] = dayjs(d[col.title], dateFormat).format(dateFormat);
} }
continue; continue;

Loading…
Cancel
Save