Skip to content

Commit

Permalink
Resolve issue with getRowsOfMatchingRecordSet lookupCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
ngnathan committed Oct 16, 2024
1 parent 740e1fd commit 500abb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-eyes-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@connectk12/exceljs": patch
---

Resolve issue with getRowsOfMatchingRecordSet lookupCondition
5 changes: 3 additions & 2 deletions src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,10 @@ export const getRowsOfMatchingRecordSet = ({
lookupCol,
lookupValue,
lookupCondition:
lookupCondition ?? opts?.findSimilarMatchWithLastDigits
lookupCondition ??
(opts?.findSimilarMatchWithLastDigits
? (currentRowValue) => currentRowValue?.endsWith(lookupValue)
: undefined,
: undefined),
});
if (startRow && lastRow) {
rows = worksheet.getRows(
Expand Down

0 comments on commit 500abb3

Please sign in to comment.