From 1bc07c3a1256dfa900270884a23f78dd8dfda756 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 25 Nov 2022 22:18:56 +0800 Subject: [PATCH] fix(nocodb): apply convertAttachmentType on groupedList --- .../src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; });