From 4e3809a853d5ac7a63e467ed7a8095cb204a1f5f Mon Sep 17 00:00:00 2001 From: Ahsan Tahir Date: Thu, 21 Dec 2023 17:59:18 +0500 Subject: [PATCH] fix(cohort): fixes email field being empty while exporting current columns in cohort (#18928) fixes cohort export Co-authored-by: Neil Kakkar --- frontend/src/queries/nodes/DataTable/DataTableExport.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/queries/nodes/DataTable/DataTableExport.tsx b/frontend/src/queries/nodes/DataTable/DataTableExport.tsx index a1b04d60e6579..8b1e0f4a5ad13 100644 --- a/frontend/src/queries/nodes/DataTable/DataTableExport.tsx +++ b/frontend/src/queries/nodes/DataTable/DataTableExport.tsx @@ -44,7 +44,7 @@ async function startDownload(query: DataTableNode, onlySelectedColumns: boolean) ) } else if (isPersonsNode(query.source)) { exportContext['columns'] = exportContext['columns'].map((c: string) => - removeExpressionComment(c) === 'person' ? 'properties.email' : c + removeExpressionComment(c) === 'person' ? 'email' : c ) } }