From c93bbc5a320e63ff817ae60ea06f36cafdf6eaa2 Mon Sep 17 00:00:00 2001 From: derek-li Date: Tue, 23 Jul 2024 13:16:12 -0700 Subject: [PATCH] fix: use distinct ids for cohort exports --- frontend/src/queries/nodes/DataTable/DataTableExport.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/queries/nodes/DataTable/DataTableExport.tsx b/frontend/src/queries/nodes/DataTable/DataTableExport.tsx index 80fd74804cd9a..c5ebe8af53335 100644 --- a/frontend/src/queries/nodes/DataTable/DataTableExport.tsx +++ b/frontend/src/queries/nodes/DataTable/DataTableExport.tsx @@ -54,7 +54,9 @@ export async function startDownload( ) } if (exportContext['columns'].includes('person')) { - exportContext['columns'] = exportContext['columns'].map((c: string) => (c === 'person' ? 'person.id' : c)) + exportContext['columns'] = exportContext['columns'].map((c: string) => + c === 'person' ? 'person.distinct_ids.0' : c + ) } exportContext['columns'] = exportContext['columns'].filter((n: string) => !columnDisallowList.includes(n)) }