Browse Source

fix(nc-gui): add missing ? to columnObj.meta

pull/6870/head
աɨռɢӄաօռɢ 12 months ago
parent
commit
ef1a324e92
  1. 4
      packages/nc-gui/composables/useMultiSelect/index.ts

4
packages/nc-gui/composables/useMultiSelect/index.ts

@ -154,8 +154,8 @@ export function useMultiSelect(
}
if (columnObj.uidt === UITypes.Date) {
const dateFormat = columnObj.meta.date_format
if (isDateMonthFormat(dateFormat)) {
const dateFormat = columnObj.meta?.date_format
if (dateFormat && isDateMonthFormat(dateFormat)) {
// any date month format (e.g. YYYY-MM) couldn't be stored in database
// with date type since it is not a valid date
// therefore, we reformat the value here to display with the formatted one

Loading…
Cancel
Save