From dccae168040a2c6246f0a7bb58c8048757398887 Mon Sep 17 00:00:00 2001 From: mertmit Date: Sat, 6 Jan 2024 08:47:50 +0000 Subject: [PATCH] fix: duplicate ro system fields --- .../src/modules/jobs/jobs/export-import/export.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts b/packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts index de4138accf..4b6e57014e 100644 --- a/packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts +++ b/packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts @@ -458,7 +458,8 @@ export class ExportService { case UITypes.LastModifiedBy: if (v) { const userIds = []; - for (const user of v as { id: string }[]) { + const userRecord = Array.isArray(v) ? v : [v]; + for (const user of userRecord) { userIds.push(user.id); } row[colId] = userIds.join(',');