Skip to content

Commit

Permalink
Resolve issue with condition on findLastRowInRecordSet
Browse files Browse the repository at this point in the history
  • Loading branch information
ngnathan committed Sep 4, 2024
1 parent 641e67f commit 93cbd15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,10 @@ export const findLastRowInRecordSet = ({
row.getCell(lookupCol).value?.toString()
);
if (lookupCondition) {
return currentRowValue && !lookupCondition(currentRowValue);
return (
!currentRowValue ||
(currentRowValue && !lookupCondition(currentRowValue))
);
}
return currentRowValue !== lookupValue;
});
Expand Down

0 comments on commit 93cbd15

Please sign in to comment.