Browse Source

chore(nc-gui): rename null to Uncategorized

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
671fbcdc16
  1. 2
      packages/nc-gui/composables/useViewData.ts

2
packages/nc-gui/composables/useViewData.ts

@ -26,7 +26,7 @@ const formatKanbanData = (list: Record<string, any>[]) =>
list.reduce((acc: any, obj: any) => {
// TODO: grouping field
const groupingFeild = 'singleSelect2'
const key = obj[groupingFeild]
const key = obj[groupingFeild] === null ? 'Uncategorized' : obj[groupingFeild]
if (!acc[key]) {
acc[key] = []
}

Loading…
Cancel
Save