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) => {
// todo: use map to avoid loop
const count =
countArr.find((countItem) => countItem.key || 'null' === item.key)
?.count ?? 0;
countArr.find((countItem) => countItem.key === item.key)?.count ?? 0;
item.value = new PagedResponseImpl(item.value, {
...req.query,

Loading…
Cancel
Save