diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts index b620d9e4df..c3ae42f365 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts @@ -2617,7 +2617,9 @@ class BaseModelSqlv2 { 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; return d; });