Browse Source

feat(nc-gui): include grouping field if it exists

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
1c8c85a502
  1. 6
      packages/nocodb/src/lib/models/View.ts

6
packages/nocodb/src/lib/models/View.ts

@ -389,7 +389,11 @@ export default class View implements ViewType {
show = false; show = false;
} }
} else if (view.type === ViewTypes.KANBAN) { } 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 primary key
show = true; show = true;
kanbanShowCount++; kanbanShowCount++;

Loading…
Cancel
Save