Skip to content

Commit 8e8bb12

Browse files
committed
fix(csv): only neutralize string cells in logs export
1 parent 2e0de90 commit 8e8bb12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/app/api/logs/export/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const revalidate = 0
1717

1818
function escapeCsv(value: any): string {
1919
if (value === null || value === undefined) return ''
20-
const str = neutralizeCsvFormula(String(value))
20+
const str = typeof value === 'string' ? neutralizeCsvFormula(value) : String(value)
2121
if (/[",\n]/.test(str)) {
2222
return `"${str.replace(/"/g, '""')}"`
2323
}

0 commit comments

Comments
 (0)