From 671fbcdc1687c8a92d732cb3466e9402d23adcab Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 10 Sep 2022 11:43:06 +0800 Subject: [PATCH] chore(nc-gui): rename null to Uncategorized --- packages/nc-gui/composables/useViewData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/composables/useViewData.ts b/packages/nc-gui/composables/useViewData.ts index bc32edd228..02fa1f72b5 100644 --- a/packages/nc-gui/composables/useViewData.ts +++ b/packages/nc-gui/composables/useViewData.ts @@ -26,7 +26,7 @@ const formatKanbanData = (list: Record[]) => 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] = [] }