From 94f783e33d23bd2c09db1dee66084b51b3890d36 Mon Sep 17 00:00:00 2001 From: Debasmita Date: Sat, 6 Jun 2026 21:33:39 +0530 Subject: [PATCH] fix: enforce const declaration for unchanged variables in csvExport --- client/lib/csvExport.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/csvExport.ts b/client/lib/csvExport.ts index 7444aa0..538d0c0 100644 --- a/client/lib/csvExport.ts +++ b/client/lib/csvExport.ts @@ -28,7 +28,7 @@ export function formatCsvValue(value: unknown): string { if (value == null) return '""'; // Safely handle nested objects/arrays to prevent "[object Object]" print bugs - let text = typeof value === "object" ? JSON.stringify(value) : String(value); + const text = typeof value === "object" ? JSON.stringify(value) : String(value); // RFC 4180 requirement: If quotes, commas, or line breaks exist, escape quotes and wrap in quotes if (/[",\r\n]/.test(text)) {