diff --git a/.changeset/big-mails-look.md b/.changeset/big-mails-look.md new file mode 100644 index 0000000..1bb36fd --- /dev/null +++ b/.changeset/big-mails-look.md @@ -0,0 +1,5 @@ +--- +"@connectk12/exceljs": patch +--- + +Resolve issue with findLastRowInRecordSet diff --git a/src/data.ts b/src/data.ts index 368d901..d8a6126 100644 --- a/src/data.ts +++ b/src/data.ts @@ -386,7 +386,7 @@ export const findLastRowInRecordSet = ({ }); const lastRowInRecordSet = nextMatchingRow ? worksheet.getRow(nextMatchingRow.number - 1) - : undefined; + : worksheet.getRow(lastRowNumber); return lastRowInRecordSet; };