Skip to content

Commit 181af3e

Browse files
committed
fix: mixed content build without rows at the end
1 parent aec3e9e commit 181af3e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "excel-ent",
3-
"version": "4.2.1",
3+
"version": "4.2.3",
44
"license": "MIT",
55
"publishConfig": {
66
"access": "public"

src/helpers/rows.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ const handleMixedStructure = (data: ExcelEntDataStructure) => {
4141

4242
rows.push(...transposed);
4343

44-
currentIndex = nextRowIndex === -1 ? currentIndex : nextRowIndex;
44+
if (nextRowIndex === -1) break;
45+
46+
currentIndex = nextRowIndex;
4547
}
4648
}
4749

0 commit comments

Comments
 (0)