Skip to content

Commit

Permalink
Merge pull request #763 from techmatters/gian_CHI-3004-reg-1.18-rc-merge
Browse files Browse the repository at this point in the history
fix: cast term to number before asserting if is int
  • Loading branch information
GPaoloni authored Oct 15, 2024
2 parents e9fb9f7 + b6956ed commit 7bcd357
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const generateQueriesFromId = <TDoc extends DocumentType>({
const queries = terms
.map(term => {
// Ignore terms that are not entirely a number, as that breaks term queries against integer fields
if (Number.isNaN(Number(term)) || !Number.isInteger(term)) {
if (Number.isNaN(Number(term)) || !Number.isInteger(Number(term))) {
return null;
}

Expand Down

0 comments on commit 7bcd357

Please sign in to comment.