Skip to content

Commit

Permalink
Resolve missing MRN in the file export
Browse files Browse the repository at this point in the history
  • Loading branch information
qu8n authored and ao508 committed Jun 19, 2024
1 parent 97ff25a commit 2b215af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/utils/buildTsvString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ export function buildTsvString(rows: any[], colDefs: ColDef[]) {
const rowsAsTsvRows = rows
.map((row) =>
colDefsToExport.map((colDef) => {
if (colDef.valueGetter) {
// @ts-ignore
return colDef.valueGetter({
colDef,
data: row,
});
}
if (colDef.field) {
return row[colDef.field];
}
Expand Down

0 comments on commit 2b215af

Please sign in to comment.