From 1c8c85a5029f4c1e89b614232328c84b14bf795a Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 17 Sep 2022 12:59:36 +0800 Subject: [PATCH] feat(nc-gui): include grouping field if it exists --- packages/nocodb/src/lib/models/View.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/models/View.ts b/packages/nocodb/src/lib/models/View.ts index 3c08d62681..9cac631d0d 100644 --- a/packages/nocodb/src/lib/models/View.ts +++ b/packages/nocodb/src/lib/models/View.ts @@ -389,7 +389,11 @@ export default class View implements ViewType { show = false; } } else if (view.type === ViewTypes.KANBAN) { - if (vCol.pv) { + const kanbanView = await KanbanView.get(view_id, ncMeta); + if (vCol.id === kanbanView?.grp_column_id) { + // include grouping field if it exists + show = true; + } else if (vCol.pv) { // Show primary key show = true; kanbanShowCount++;