From 245799cfa8e382f604b2568baf132ece02ab40e6 Mon Sep 17 00:00:00 2001 From: Kuba Sekowski Date: Tue, 10 Dec 2024 19:25:50 +0100 Subject: [PATCH] Docs: Fix exceljs API usage in the file import code example to handle shared formulas (#1470) --- docs/guide/file-import.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/file-import.md b/docs/guide/file-import.md index 157517f1c..72cb64251 100644 --- a/docs/guide/file-import.md +++ b/docs/guide/file-import.md @@ -49,7 +49,7 @@ function convertXlsxWorkbookToJavascriptArrays(workbook) { const rowData = []; row.eachCell((cell) => { - const cellData = cell.value.formula ? `=${cell.value.formula}` : cell.value; + const cellData = cell.formula ? `=${cell.formula}` : cell.value; rowData.push(cellData); });