From 181af3e92172ebc858197803909a20a860da01c0 Mon Sep 17 00:00:00 2001 From: leoreisdias Date: Fri, 8 Sep 2023 17:57:51 -0300 Subject: [PATCH] fix: mixed content build without rows at the end --- package.json | 2 +- src/helpers/rows.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f4483ac..73bd692 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "excel-ent", - "version": "4.2.1", + "version": "4.2.3", "license": "MIT", "publishConfig": { "access": "public" diff --git a/src/helpers/rows.ts b/src/helpers/rows.ts index 047feb5..51b8d28 100644 --- a/src/helpers/rows.ts +++ b/src/helpers/rows.ts @@ -41,7 +41,9 @@ const handleMixedStructure = (data: ExcelEntDataStructure) => { rows.push(...transposed); - currentIndex = nextRowIndex === -1 ? currentIndex : nextRowIndex; + if (nextRowIndex === -1) break; + + currentIndex = nextRowIndex; } }