Browse Source

Merge pull request #6259 from nocodb/fix/kanban-datetime

fix(nocodb): apply convertDateFormat in groupedList data
pull/6263/head
աɨռɢӄաօռɢ 1 year ago committed by GitHub
parent
commit
e5f4701718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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 proto = await this.getProto();
const data = await groupedQb; const data = await groupedQb;
const result = data?.map((d) => { const result = data?.map((d) => {
d.__proto__ = proto; d.__proto__ = proto;
return d; return this.convertDateFormat(d);
}); });
const groupedResult = result.reduce<Map<string | number | null, any[]>>( const groupedResult = result.reduce<Map<string | number | null, any[]>>(
@ -3660,9 +3661,7 @@ class BaseModelSqlv2 {
if (!aggObj.has(row[column.title])) { if (!aggObj.has(row[column.title])) {
aggObj.set(row[column.title], []); aggObj.set(row[column.title], []);
} }
aggObj.get(row[column.title]).push(row); aggObj.get(row[column.title]).push(row);
return aggObj; return aggObj;
}, },
new Map(), new Map(),

Loading…
Cancel
Save