Browse Source

fix: groupedList

pull/7060/head
mertmit 12 months ago
parent
commit
8872065176
  1. 6
      packages/nocodb/src/db/BaseModelSqlv2.ts

6
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -4221,11 +4221,11 @@ class BaseModelSqlv2 {
const groupedResult = result.reduce<Map<string | number | null, any[]>>(
(aggObj, row) => {
if (!aggObj.has(row[column.id])) {
aggObj.set(row[column.id], []);
if (!aggObj.has(row[column.title])) {
aggObj.set(row[column.title], []);
}
aggObj.get(row[column.id]).push(row);
aggObj.get(row[column.title]).push(row);
return aggObj;
},

Loading…
Cancel
Save