From 757496277c2d7b70d8fdff2230d553685cc83158 Mon Sep 17 00:00:00 2001 From: Yusef Habib Fernandez Date: Fri, 22 Nov 2024 16:59:20 +0100 Subject: [PATCH] fmt --- frontend/src/lib/utils/export-to-csv.utils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/utils/export-to-csv.utils.ts b/frontend/src/lib/utils/export-to-csv.utils.ts index 60b199aae7..e9a7166c3a 100644 --- a/frontend/src/lib/utils/export-to-csv.utils.ts +++ b/frontend/src/lib/utils/export-to-csv.utils.ts @@ -51,7 +51,7 @@ export const convertToCsv = ({ metadata = [], }: CsvBaseConfig) => { if (headers.length === 0) return ""; - + const PAD_LEFT_WHEN_METADATA_PRESENT = 2; const csvRows: string[] = []; let padLeft = 0; @@ -68,7 +68,9 @@ export const convertToCsv = ({ csvRows.push(metadataRow); // Add an empty row to separate metadata from data - const emptyRow = Array(headers.length + metadata.length).fill("").join(","); + const emptyRow = Array(headers.length + metadata.length) + .fill("") + .join(","); csvRows.push(emptyRow); padLeft = PAD_LEFT_WHEN_METADATA_PRESENT;