Browse Source

fix(nc-gui): incorrect kanban stack count

pull/3563/head
Wing-Kam Wong 2 years ago
parent
commit
07d8d1c1cb
  1. 3
      packages/nocodb/src/lib/meta/api/dataApis/dataAliasApis.ts

3
packages/nocodb/src/lib/meta/api/dataApis/dataAliasApis.ts

@ -270,8 +270,7 @@ async function getGroupedDataList(model, view: View, req) {
data = data.map((item) => { data = data.map((item) => {
// todo: use map to avoid loop // todo: use map to avoid loop
const count = const count =
countArr.find((countItem) => countItem.key || 'null' === item.key) countArr.find((countItem) => countItem.key === item.key)?.count ?? 0;
?.count ?? 0;
item.value = new PagedResponseImpl(item.value, { item.value = new PagedResponseImpl(item.value, {
...req.query, ...req.query,

Loading…
Cancel
Save