Browse Source

fix(nocodb): apply convertAttachmentType on groupedList

pull/4495/head
Wing-Kam Wong 2 years ago
parent
commit
1bc07c3a12
  1. 4
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

4
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

@ -2617,7 +2617,9 @@ class BaseModelSqlv2 {
const proto = await this.getProto(); const proto = await this.getProto();
const result = (await groupedQb)?.map((d) => { let data = await groupedQb;
data = this.convertAttachmentType(data);
const result = data?.map((d) => {
d.__proto__ = proto; d.__proto__ = proto;
return d; return d;
}); });

Loading…
Cancel
Save