Browse Source

fix(nocodb): apply convertDateFormat in groupedList data

pull/6259/head
Wing-Kam Wong 1 year ago
parent
commit
9e93d62e7f
  1. 5
      packages/nocodb/src/db/BaseModelSqlv2.ts

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

@ -3650,9 +3650,10 @@ class BaseModelSqlv2 {
const proto = await this.getProto();
const data = await groupedQb;
const result = data?.map((d) => {
d.__proto__ = proto;
return d;
return this.convertDateFormat(d);
});
const groupedResult = result.reduce<Map<string | number | null, any[]>>(
@ -3660,9 +3661,7 @@ class BaseModelSqlv2 {
if (!aggObj.has(row[column.title])) {
aggObj.set(row[column.title], []);
}
aggObj.get(row[column.title]).push(row);
return aggObj;
},
new Map(),

Loading…
Cancel
Save