From cf4f51d3fd88f0c61a8931d15ce1a56fcc178878 Mon Sep 17 00:00:00 2001 From: mertmit Date: Sat, 6 Jan 2024 08:47:48 +0000 Subject: [PATCH] fix: export csv for CreatedBy & LastModifiedBy --- packages/nocodb/src/modules/datas/helpers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/modules/datas/helpers.ts b/packages/nocodb/src/modules/datas/helpers.ts index c36e0b224c..b7dd7cf623 100644 --- a/packages/nocodb/src/modules/datas/helpers.ts +++ b/packages/nocodb/src/modules/datas/helpers.ts @@ -181,7 +181,9 @@ export async function serializeCellValue({ } } catch {} - return (data || []).map((user) => `${user.email}`).join(', '); + return (data ? (Array.isArray(data) ? data : [data]) : []) + .map((user) => `${user.email}`) + .join(', '); } case UITypes.Lookup: {