Skip to content

Commit

Permalink
fix: handle new values for duplicate checks
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Mar 25, 2024
1 parent b18b38f commit 20c3ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/validate-sgid-index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async function duplicates(row) {
continue;
}

if (duplicateLookups[field][value].length > 1) {
if (duplicateLookups[field][value]?.length > 1) {
recordError(`duplicate ${field}: "${value}" found`, row);
}
}
Expand Down

0 comments on commit 20c3ebc

Please sign in to comment.