We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f77d7f8 commit f31df63Copy full SHA for f31df63
components/dashboard/src/insights/download/download-sessions.ts
@@ -101,11 +101,7 @@ const downloadUsageCSV = async ({
101
};
102
}
103
104
- const rows = records
105
- .map((record) => {
106
- return transformSessionRecord(record);
107
- })
108
- .filter((r) => !!r);
+ const rows = records.map(transformSessionRecord).filter((r) => !!r);
109
const fields = Object.keys(rows[0]) as (keyof ReturnType<typeof transformSessionRecord>)[];
110
111
// TODO: look into a lib to handle this more robustly
0 commit comments