Skip to content

Commit

Permalink
fix: use distinct ids for cohort exports
Browse files Browse the repository at this point in the history
  • Loading branch information
derek-li committed Jul 23, 2024
1 parent cff159c commit c93bbc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/queries/nodes/DataTable/DataTableExport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit c93bbc5

Please sign in to comment.