Merge pull request #8120 from Budibase/bug/sev3/public-api-equals-number

Fix table block search
This commit is contained in:
melohagan 2022-10-04 14:10:04 +01:00 committed by GitHub
commit 9e3c5c1a5e
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class QueryBuilder {
}
// Wrap in quotes
if (originalType === "string" && !isNaN(value)) {
if (originalType === "string" && !isNaN(value) && !escape) {
value = `"${value}"`
} else if (hasVersion && wrap) {
value = originalType === "number" ? value : `"${value}"`