From e439a4c2ec4da327b68ec5359475d59ef64471d5 Mon Sep 17 00:00:00 2001 From: David Boskovic Date: Thu, 19 Oct 2023 11:03:50 -0400 Subject: [PATCH] chore: excel formatting --- plugins/export-workbook/src/plugin.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/export-workbook/src/plugin.ts b/plugins/export-workbook/src/plugin.ts index 15d38281e..ae74eaaac 100644 --- a/plugins/export-workbook/src/plugin.ts +++ b/plugins/export-workbook/src/plugin.ts @@ -95,7 +95,11 @@ export const run = async ( // '0' is not a valid accessible index in a worksheet and '1' is the header row const cell = worksheet[ - `${alphaColumnDesignations[colIdx]}${rowIdx + 2}` + `${ + alphaColumnDesignations[ + colIdx + (options?.includeRecordIds ? 1 : 0) + ] + }${rowIdx + 2}` ] cell.c = R.pipe( @@ -105,6 +109,7 @@ export const run = async ( t: `[${m.type.toUpperCase()}]: ${m.message}`, })) ) + cell.c.hidden = true } }) )