Browse Source

fix(nocodb): convert null key

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
1af36293a2
  1. 2
      packages/nocodb/src/lib/meta/api/dataApis/dataAliasApis.ts

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

@ -267,7 +267,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 = countArr.find( const count = countArr.find(
(countItem) => countItem.key === item.key (countItem) => countItem.key || 'null' === item.key
)?.count; )?.count;
item.value = new PagedResponseImpl(item.value, { item.value = new PagedResponseImpl(item.value, {

Loading…
Cancel
Save